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

  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