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

  Program to find real solutions

Method, which determines whether value of "b squared" - 4ac is negative. If negative, code then  prints out message "no real solutions" and returns from method.

  Program to keep track of the seat availability of flight

A small airline company needs a program to keep track of the seat availability of its flights. Design the structure type FLIGHT to store a four-digit flight number.

  Write program compute salary by adding base tax

Compute by adding base tax for that salary range and product of percentage of excess and amount of salary over minimum salary for that range. Write a program which solves this problem.

  Program to prompts user for integer and print prime number

Give a program which will compile in VS 2010. Write a program to prompts user for integer and then prints out all prime numbers up to that integer.

  Step by step procedure to solve to create record note book

Create Record note book; The Record note book should be in the follwoing order. Procedure: Write down step by step procedure to solve problem.

  Define prolog relations for the following

Provide some facts for the father, mother, male, and female predicates and then test the entire thing using Prolog.

  Invoke method to tell air conditioner object to turn on

Assume there is a reference variable myAC to an object of this class, which has already been created. Using the reference variable, invoke a method to tell the air conditioner object to turn on.

  Prepare an animated application that uses depth-first

Develop an animated application that uses depth-first and breadth-first searches as the basis of the implementation.

  How write the program to calculate simple matrix

How to write the program to calculate simple 3x3 spreadsheet containing integers and strings. First, input spreadsheet source values from console.

  Write program to display companys payroll report in list box

Write down the program to display companys payroll report in list box. Program must read each employee's name, hourly rate, and hours worked from file and produce report.

  Ms word versus other processing program

MS word Versus other processing program

  Comparing running time of two algorithm

Which algorithm would you prefer on the basis of running time, suppose all other factors equal?

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