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

Make a javascript jquery script to fill variables from, Make a JavaScript j...

Make a JavaScript jQuery script to fill variables from a remote JSON file I'm in requirement of someone to write and rewrite some JavaScript code that connects to a remote rest

What is jdbc exactly, What is JDBC exactly? Describe the steps required to ...

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

Describe invoking methods in java, Describe Invoking Methods in java? c...

Describe Invoking Methods in java? class Car { String licensePlate = ""; // e.g. "New York 543 A23" double speed = 0.0; // in kilometers per hour double maxS

What is a packet in the network environment, What is a packet within the ne...

What is a packet within the network environment? What kind of information does it contain? A packet is the shortest unit of data transmitted over a computer network. It's a mes

Derfine j2ee in detail?, A J2EE component is a self-contained functional so...

A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related files and classes and interacts with other components. The

Applet, how to quit from unlimitedly executing applet

how to quit from unlimitedly executing applet

What is the purpose of garbage collection in java, What is the purpose of g...

What is the purpose of garbage collection in Java, and when is it used? The purpose of garbage collection is to identify and discard objects that are no longer required by a pr

Develop a color picker, Project Description: We need same kind of concep...

Project Description: We need same kind of concept with some changes # Change single colors in a particular design. you need to be able to change the color of only the fox or

Define high-level thread states?, The state chart diagram given below defin...

The state chart diagram given below defines the thread states.     1.      Runnable - waiting for its turn to be picked for performing by the thread scheduler based o

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