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
What is the difference between method overriding and overloading? Overriding is a method with the same name and arguments as in a parent, whereas overloading is the same met

Prepare a Java program to read .GPX files Project Description: Prepare a Java program (GPX_Tracks_to_Text.Java) for Windows to: - Read every .GPX file in a provide drive a

For your project, you will be designing a payroll system for a company. The company will use the system to generate payroll reports based on different kinds of employees in the com

Project Description: I want to create similar site: fifacointrader I want similar site like fifacointrader.com Skills required are HTML, Java, PHP, Website Design, Wordpre

Write HTML and JavaScript code which displays a textbox and button on a web page? While user enters text in the text box and clicks the button it displays in that text in the m

Describe Importing Classes in java? Fully qualified names such as java.net.URL are not the most convenient thing to have to type. You can use the shorter class names like URL w

Ask1. Storing the Array: Write an application that uses an Array to store 10messages of type String. You will store this Array with 10 messages of your choosing. For example, a mes

What is JDBC exactly? Describe the steps required to execute a SQL query using JDBC.

Develop an ehospital project Project Description: I am preparing ehopsital project.for the requires of hospital in that patient registration and billing module and stores mod

I want somebody to help me to create a program in java that helps me to read data from usb logs in windows Project Description: I want a java program that helps me to detect