write a junit test suite, JAVA Programming

Assignment Help:

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


Related Discussions:- write a junit test suite

Explain rmi, RMI is a set of APIs that permits to build distributed applica...

RMI is a set of APIs that permits to build distributed applications. RMI uses interfaces to describe remote objects to turn local method invocations into remote method invocations.

Break statement, The break statement is utilized for terminating the curren...

The break statement is utilized for terminating the current While or For loop and after that transferring program control towards statement just after the terminated loop. The foll

How many iterations would this for loop run for, How many iterations would ...

How many iterations would this ‘for' loop run for? for ( x = 50 ; x document.write ( x ) ; } Answer: 50 iterations

Use the constructor, Can we use the constructor, instead of init(), to init...

Can we use the constructor, instead of init(), to initialize servlet? Ans) Yes. Of course you can use the constructor instead of init(). There's nothing to stop you. But you sho

How can you define a consistent web design, How can you define a consistent...

How can you define a consistent web design? Why is it needed? A consistent web design should be the one in which achieves the result in which it was designed for, which result

What are the services in rmi, An RMI "service" could well be any Java metho...

An RMI "service" could well be any Java method that can be invoked remotely. The other service is the JRMP RMI naming service which is a lookup service.

State in brief about the java, State in brief about the java Java is a ...

State in brief about the java Java is a object-oriented, simple, distributed, robust, interpreted, architecture-neutral, secure, portable, multi-threaded, high- performance and

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd