Class CurrConvert contains three methods: getCountries(), getAmount(), and convert(). Method getCountries() asks the user to select countries C1 and C2, where the currency of C1 is to be converted to...

Class CurrConvert contains three methods: getCountries(), getAmount(), and convert(). Method getCountries() asks the user to select countries C1 and C2, where the currency of C1 is to be converted to that of C2. Method getAmount() gets the amount in the currency of C1. Method convert() converts the given amount into the equivalent currency of C2. For conversion it uses another class named CurrData that contains a method getRate() to obtain the latest conversion rate between the currencies of C1 and C2. Code CurrConvert in a language of your choice. Assume that CurrData is not available when testing CurrConvert. Write an interface CurrConvertInterface. Using JUnit, or any other unit testing tool available for the language of your choice, create and run tests for CurrConvert using a mock object for CurrData. Try using equivalence partitioning and boundary value analysis techniques to generate the tests



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here