- title: Assignment 3
- subtitle: Unit testing
- due: 14 Oct, 2013
- marks: 10 marks
-
Fork the github repository
-
Complete the skeleton file
TemperatureTest.java
to unit test theTemperature
class. 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
Temeprature
class, you are allowed to modify theTemperature
class appropriately. -
Tag your final code with tag
assignment-2
and submit the Git URL of your repository. Your rationale for choosing the test data should be described in the code comments.