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
Why hub is used in networks? HUB: Hub is networking component that can be used to connect the networks and it could also be used to extend the size of networks. In a simple way



Need support Display TIFF in Internet Explorer without ActiveX plugin I would like to get a client side viewer designed that permits user to view TIFF files on IE 8 and IE 9 bro

Write a Java program to find the sum of 1+3+5+…. , for 10 terms in the series.

What is the use of Wrapper class You can create an object of Wrapper class using a String or a primitive data type Integer num = new Integer (4); or Integer num = n

Want an Experienced iOS and Android expert Project Description: I am seeking a super talented team or Individual for a Real Estate app. The project wants to get done in a ver

What are Trojan Horses? Trojan Horses are unlike viruses usually they are stand-alone programs. The look such as what they are not. They appear to be something harmless and int

wap to find all the prime palindromic numbers