Create test-methods for each operations

Assignment Help Programming Languages
Reference no: EM13763115

Objectives:

1. Practice using TDD.

2. Practice building methods.

3. Practice using Java/JUnit.

Introduction:

This task is to use test-driven development (TDD) to finish the BookCollection project. You should have at least four classes: Book class, BookCollection class, TestBook class and TestBookCollection class. You need to use TDD to test and build all the methods

including:

1) A searchByYear(int year) method that returns all Books published in the given year. Your test-method should check for the years 1981, and 1999.

2) A searchByTitlePhrase(String phrase) method that returns all Books with phrase anywhere in their title.

3) A searchByAuthorName(String name) method that returns all Books published by the same author.

4) Necessary methods in Book class

You should use test-driven development for these methods:

1. Create test-methods for each of these operations, and then

2. Write the methods to pass the tests.

A significant portion of your score will be based on the effectiveness and thoroughness of your test-methods.

Grading

1. Test methods (test cases): 60%

2. Methods for the classes: 40%

Submission:

Run all you tests (which are passed) and paste the result into the end of your source code (save as a word file). Upload your word file on CMS.

Reference no: EM13763115

Questions Cloud

Presentation to management concerning the sheila scenario : Prepare a PowerPoint presentation to management concerning the "SHEILA" SCENARIO-You are the Vice President of Customer Service (the "Sheila" scenario) that contains the following: A firm recommendation as to whether Sheila should be retained or te..
Discuss concept of justice in post-apartheid south africa : Based on your reading of J.M. Coetzee's "Disgrace", discuss the concept of justice in post-apartheid South Africa.
Predetermined overhead rate per direct labor hour : The company estimates that 16,000 direct labor and 106,000 machine hours will be worked during the year. If overhead is applied on the basis of direct labor hours, the predetermined overhead rate per direct labor hour will be:
Inner workings of a firm : 1. An offshoot of business process outsourcing which requires a greater skill or knowledge of the industry or inner workings of a firm is: 2. How are the procurement responsibilities divided between the project manager and contract administrator?
Create test-methods for each operations : Write the methods to pass the tests. A significant portion of your score will be based on the effectiveness and thoroughness of your test-methods.
Optimization of business intelligence and data warehouses : Businesses today are extremely reliant on large amounts of data for making intelligent business decisions. Likewise, the data warehouses are often structured in a manner that optimizes processing large amounts of data.
What does passage say about the relationship with god : What does this passage say about the relationship with God? What questions might this passage have addressed in the community for which it was originally written?
The heat-treat atmosphere : List potential issues, difficulties, or limitations with your solution.
Write an analytical essay on short fiction : Write an Analytical Essay on Short Fiction.

Reviews

Write a Review

Programming Languages Questions & Answers

  Advantages and disadvantages for windows login

The Windows login can be a user or a group with users defined to the group. What do you think the advantages and disadvantages are for each type?

  Create mock level design for game

Write a 5-page "mock level design" in which you design a level for a game. The game is a shooter, the level is an old warehouse filled with zombies and demons with a boss at the end.

  Create program which calculate distance travelled by boat

Create a program which calculate distance a boat travels across a river, given the width of the river, the boat's speed perpendicular to the river.

  Write program which prompts for boiling point of substance

Write program which prompts user for observed boiling point of substance in Centigrade and identifies substance if observed boiling point is within 5% of the expected boiling point.

  Write class called flight which represents airline flight

Draw and implement the class called Flight which represents an airline flight. It must contain instance data which represents airline name (String), flight number (int), and the flight's origin city (String).

  Create a base class that contains all of the properties

Create a base class (also called a superclass) that contains all of the properties that are common to both of these products. Create 2 derived classes (also called subclasses) that contain different kinds of sizes.

  Program that prompts user to enter five test scores

Write the algorithm for a program that prompts the user to enter five test scores.

  Program to enter up to 20 integers in the array of long

Write down a program which asks user in order to enter up to 20 integers in the array of longs.The program must utilize the function Find_It() in order to situate the integer within the array.

  Create a very abstract programming environment

Find these header files in the Visual Studio system and determine the smallest (i.e., most negative) and largest (i.e., most positive) values that can be represented as int, unsigned int, long, unsigned long, float and double.

  What will the permissions string contain

If you execute ls -ld on the project38" directory, what will the permissions string contain? If you execute ls -l on the iapp_v_8 file contained in project38 , what will the permissions string contain

  Write class which accepts user-s hourly rate of pay

Write down class which accepts the user's hourly rate of pay and number of hours worked. Display user's gross pay, withholding tax (15% of gross pay).

  Program for vehicle registration department

Consulting firm has narrowed the choice of programming language to Java and C#. Which language do you believe would be more suitable for this application and why?

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