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 function to circulate a list

Write a function to circulate a list. The function takes two paramaters, the first defines how many elements of the list to circulate, and the second is the list. The output should be the circulated list.

  Wt do you mean by procedural or algorithmic programming

what is procedural or algorithmic programming? what is object-oriented programming? what is the role of code reuse in

  Write a program where you create a class called bankaccount

Write a program where you create a class called BankAccount. The BankAccount class should contain a String to store the customer name and a double to store the account balance.

  Write a program to help a local stock trading company

Write a program to help a local stock trading company automate its systems. The company invests only in the stock market. At the end of each trading day, the company would like to generate and post the listing of its stocks so that investors can s..

  Applications in involve computing various powers of e

The transcendental number, e. Many applications in mathematics involve computing various powers of e. It can be proven that ex = 1 + x/1 + x2/2! + x3/3! + ... for all values of x. Of course, this is an infinite sum.

  Calculates and displays the property tax

Write a java application that calculates and displays the property tax for N property owners. N should be declared as a constant and it should be equal to the largest digit of your student ID number

  There is two part in this assignment1-discussion1-what does

there is two part in this assignment1-discussion1-what does ethics have to do with recruiting and please define ethics?

  Write down program to open file and copy file

Write down program which opens the file and copy file to another and for file there must be three columns of floating points for each column get maximum and minimum.

  Write progam which uses two-dimensional array

Write the progam which uses two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low,

  Implement functions using x86 assembly

Implement a procedure that mimics a logic unit

  Program to track which user is logged onto which computer

Write a computer program that could be used to track, by lab, which user is logged onto which computer.

  Develope a tutoring software for an elementary school

You are the project manger for a company that is planning to develope a tutoring software for an elementary school that will follow their curriculum create a work breadown structure.

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