write a junit test suite, JAVA Programming

Objective

The objective of this lab exercise is to develop a unit test suite using JUnit Specification of the Program to be Tested You are given the source code of a Java class named StringUtil.java. This class provides a public static method

public static String pluralize(String word)

The specification of the method is as follows:

Input: The argument word is a single word in English.

Output: If the word is a singular noun, it returns the plural form of the noun. Otherwise, it returns the original word.

Exception: if the argument is not a properly formed English word, an IllegalArgumentException should be thrown.

Requirements of the Lab Exercise

1. Write a JUnit test suite to adequately test the pluralize() method. You may use any combination of functional testing techniques to develop the test cases.

2. Use Ant to run the testing process, which includes compilation and the execution of the test suite.

Deliverables

1. The source code of the JUnit test suite.

2. The Ant script.

3. The test report generated by JUnit.

4. A report that discusses the techniques you used to design the test suite.

5. A summary of the defects revealed by your test suite (with references to specific test cases).

All files must be in one of the following formats

1. Plain text, including source code and scripts.

2. Microsoft Word and Excel

3. PDF

The entire deliverable set must be packaged in a single archive file using one of the following formats

1. ZIP

2. TAR and GZIP (GNU zip)

3. JAR

Posted Date: 3/13/2013 2:13:21 AM | Location : United States







Related Discussions:- write a junit test suite, Assignment Help, Ask Question on write a junit test suite, Get Answer, Expert's Help, write a junit test suite Discussions

Write discussion on write a junit test suite
Your posts are moderated
Related Questions
need a java program that can read and display the values from a windows registry

What is Bit-Mapped or Raster Graphics? Similar as object-oriented graphics, refers to software and hardware which use geometrical formulas to represent images. The other techni

Consider the following code? What input is needed for x in order for the sum variable that is output at the end of the code to be 12 ? (In other words: what do I need to make X be

In RPC the method invoker waits for the method to finish implementation and return the control back to the invoker. Therefore it is completely synchronous in nature. Whereas in JMS

Question 1: a) What is an "Operating System"? b) Describe the four main computer system components. c) Describe and compare "Parallel Systems" and "Distributed Systems

Question 1: (a) Describe two reasons driving the termination of processes. (b) Discuss the five main steps the OS would implement once it has decided to create a new proc

what are the steps of object oriented programming language?

The following set of short questions will focus on getting you familiar with JavaScript functions. All functions and testing should appear in a single XHTML 1.0 Strict page. All