Lab #8: Unit Testing

$30.00

Category: Tags: , , , You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (4 votes)

Looking at the example unit tests I gave you for the Triangle class
(https://raw.githubusercontent.com/cosc1047w18/course/master/unittest/Triangle.java)
(https://raw.githubusercontent.com/cosc1047w18/course/master/unittest/TriangleTest.java)
Write your own class (if you’re really stuck just use another shape class like circle or rectangle) that has
at least two methods and utilizes at least two variables.
Then write a test class for your class. Your test class should include at least 2 unit tests and your code
should provide 100% coverage. (do not worry about covering every branch case)
please submit both your class and your unit test file.