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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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