tasks with the classes Currency, Money and Bank., JAVA Programming

Assignment Help:
In this assignment you work on a set of tasks with the classes Currency, Money and Bank.
Money and Currency
You have been given a template for the Currency and Money classes (Lab1.zip), and a specification in the form of a JavaDoc document Link. There is also a Bank class. All the methods of Currency.java and Money.java are empty.
First, write test cases for each method of these classes, and then fill in the methods with code that will make your test cases pass. Read the comments in all the Test Classes to find out what is expected to be covered in the test case and what should be implemented.
Bank
The Bank class was written by a brain-dead programmer. When you are confident you’re Money and Currency classes work as intended, write test cases for the Bank class and find the bugs. Again, the specification is provided in the JavaDoc document Link.
ToDo Checklist
1. Write the code for the body of the test cases methods for MoneyTest.java and CurrencyTest.java.
2. Motivate your test cases by commenting in the test methods. Make sure you read the available comments in the test methods and create your test cases according to those guidelines.
3. Complete the methods body in Money.java and Currency.java classes, and comment where necessary. Again make sure you follow the specification for each method and implement the required specification.
4. If you run your test cases for MoneyTest.java and CurrencyTest.java at this point, they should be all passed.
5. By reading the Bank.java specification in JavaDoc make your test cases according to the comments in the BankTest.java file. Specify which one of your test cases fails, by commenting in the corresponding test methods.
6. Find the bug in Bank.java base on the JUnit failure from the last step, and specify it by commenting the code where the bug is spotted. Explain how you managed to find the bug by running the unit tests.
7. Fix the bug and verify that BankTest.java passes successfully.

Related Discussions:- tasks with the classes Currency, Money and Bank.

Student, what are Objects and Fields in java

what are Objects and Fields in java

Describe the final keyword, Describe the final keyword ? The final key...

Describe the final keyword ? The final keyword is used in various different contexts as a modifier meaning in which what it modifies cannot be changed in a few sense. final c

Prepare a game in corona, Prepare a Game in Corona (for Android and IOS) ...

Prepare a Game in Corona (for Android and IOS) Project Description: We are looking to prepare a game for mobile platform similar to Zombie Smasher for iOS and Android. Eve

Universal android and ios, Universal Android and iOS, Multipurpose Testing ...

Universal Android and iOS, Multipurpose Testing Application - Based on Phonegap Project Description: Universal Android and iOS, Multipurpose Testing Application Based on Phon

Need android geolocation service app, Need Android GeoLocation Service App ...

Need Android GeoLocation Service App Project Description: I want an android service app that will run on the background. The app has to get the users location (latitude an

Describe the life cycle methods of a jsp? , 1. Pre-translated: Before the...

1. Pre-translated: Before the JSP file has been compiled and translated into the Servlet. 2. Translated: The JSP file has been compiled and translated as a Servlet. 3. I

La food, The fancy new French restaurant La Food is very popular for its au...

The fancy new French restaurant La Food is very popular for its authentic cuisine and high prices. This restaurant does not take reservations. To help improve the efficiency of the

What is jdbc exactly, What is JDBC exactly? Describe the steps required to ...

What is JDBC exactly? Describe the steps required to execute a SQL query using JDBC.

Farm production system, Farm Production System Project Description: I...

Farm Production System Project Description: I require software that will allow me to input/record the daily production of our farm and allow me to view the data back in the o

Write Your Message!

Captcha
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