Question: WRIET JAVA CODE 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 youre really

WRIET JAVA CODE

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 youre 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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!