SWE 637 Homework 2
Spring 2019
JUnit


Develop a theory for the transitivity of the compareTo() method in the Comparable interface. Create a class that implements the Comparable interface in such a way that this theory is violated. Then fix your implementation and verify that the theory is satisfied.

Make it easy to evaluate your work. Specifically, since you are evaluating different versions of same code, provide evidence of execution (screen shots) at each phase, and briefly describe all of your work.

The deliverable is a report, as opposed to executable code and tests.

Grading:

Note: You can earn a bonus point by handling Java generics properly and explaining your solution clearly.