- title: Assignment 3
- subtitle: Unit testing
- due: 14 Oct, 2013
- marks: 10 marks
-
Fork the github repository
-
Complete the skeleton file
TemperatureTest.javato unit test theTemperatureclass. You must test the following:-
Check the
getUnits()andgetValue()functions. -
Check the
changeUnits()function for all six possible conversions between Celsius, Fahrenheit, and Kelvin.
Explain your reasoning for choosing the particular test data. Note that you may have to choose multiple test data for each of the above test cases.
-
-
While running the above test cases, if you find bugs in the
Temepratureclass, you are allowed to modify theTemperatureclass appropriately. -
Tag your final code with tag
assignment-2and submit the Git URL of your repository. Your rationale for choosing the test data should be described in the code comments.