in this assignment you work on a set of tasks


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.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: in this assignment you work on a set of tasks
Reference No:- TGS0329355

Expected delivery within 24 Hours