Create a separate test directory

Assignment Help Programming Languages
Reference no: EM13336112

Unit Tests, Build Scripts

Consider a company that wants to keep track of its employees, their positions and their telephone numbers. Your development team has developed a simple prototype using the Java code found in EmployeeDirectory.zip. In the lib directory is a jar file that must be in the Java classpath in order for the code to compile and run. In the res directory are sample input files containing employee and phone records.

1) Use jUnit to write thorough unit tests for the Phone and Employee classes. Do not put test code in the src directory, instead, create a separate test directory.

2) The provided Ant script build.xml contains the following targets:
• init (does preliminaries for build)
• compile (compiles the application code and puts it into build directory)
• dist (default(target, generates the application distribution jar, places this and supporting data files in dist directory)
• clean (deletes any directories and files created during build activities)

Modify build.xml to provide the following additional targets (be sure to update clean accordingly):

a) test (compiles and runs the jUnit tests you have created, depends on compile)

b) doc (generates the application code's javadoc and puts it into a doc directory)

Resources
https://github.com/junitQteam/junit/wiki
https://ant.apache.org/manual/

Reference no: EM13336112

Questions Cloud

Calculate underwriters spread in percentage on stock issue : In discussions with its investment bank, DiPitro's learns that the bankers recommend a gross price of $44 per share and that 70,000 shares of stock be sold. The net proceeds on the stock sale leaves DiPitro's with $2.870 million.
Determine the resistive force the weed exerts on weed puller : A gardener is using a tool as shown in the figure to pull weeds. You will notice that the tool is designed with a built in pivot point about which the torques are applied
Calculate the income tax payable for 2013 : Migor Company (MC)-a Canadian company whose shares trade on a Canadian stock exchange-designs and builds custom-ordered precision machinery. MC is a publicly accountable enterprise adhering to IFRS. Its 2013 income statement will report "Incom..
Explain what is the standard potential e cell : What is the standard potential, E cell, for this galvanic cell? Express your answer to four significant figures and include the appropriate units.
Create a separate test directory : Use jUnit to write thorough unit tests for the Phone and Employee classes. Do not put test code in the src directory, instead, create a separate test directory.
Find the vertical deflection of the end of the rod : A horizontal aluminum rod 4.5 cm in diameter projects 5.5 cm from a wall. A 910 kg object is suspended from the end of the rod. find the vertical deflection of the end of the rod
What is the firms cost of a new issue of common stock : The firm can sell a 15-year, $1,000 par value, 8 percent semi-annual bond for $960. A flotation cost of 2 percent of the face value would also be required , but was not factored into the market price listed above.
Describe standard reduction potentials for nickel : Standard reduction potentials for nickel(II) and copper(II) The standard reduction potential for a substance indicates how readily that substance gains electrons relative to other substances at standard conditions.
Find the electric field within the wire : A current of 200 rnA flows in a silver wire of radius 0.8 mm. Find the electric field within the wire

Reviews

Write a Review

Programming Languages Questions & Answers

  Create program to calculate amount of paint needed

Create a program to calculate the amount of paint needed to cover one side of a house with a sloped roof . Assume tha this house has a rectangular shape with a rectangular window .

  Program to read the contents of file into the array

Write down the program which asks user for a file name. Suppsoe the file contains the series of numbers, each written on separate line.

  Write program that asks user to enter current value

Write a program which asks the user to enter the current value of a car. For new car, it is selling price of car. The program must display number of years it takes for the car's trade-in value to be below $1000.

  Program to prompt a user for hourly pay rate

Create program called "calculatePay" which will prompt user for their hourly pay rate.

  Write pseudo algorithm which inputs age for valid voting

Write pseudo algorithm which inputs Age, displays "Yes, you can vote" if Age is 18 or older and displays "You are too young to vote" if Age is less than 18, and displays nothing else.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Program to compute flow of water flowing through a pipe

Write a program to calculate the volume flow rate in cubic feet per second of water flowing through a pipe of diameter d in inches and a velocity of v feet per second.

  How prospectors get through mine shaft only fifteen minutes

How can all four prospectors get through mine shaft in only 15 minutes? After you have solved this problem, describe how you got your foot in door.

  Write program to enter age using exception handling

Prepare the program called EnterYourAge3.java which asks user to enter his or her age and uses exception handling to catch NumberFormatException in case user enters nonnumeric character.

  Write application to input numbers in one dimensional array

Use a one dimensional array to solve the following problem: Write an application that inputs five numbers, each between 10 and 100, inclusive.

  Function to convert a decimal input into roman numerals

Write a function that converts a decimal input into Roman Numerals. Your function will take in a number and output a string.

  Write method to accept stack containing some elements

Write a method that accepts a stack containing some elements from the file "Q1.txt" and returns a new stack containing the same elements and in the same order as the original stack.

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