Interval class implementation
1. Class Implementation
Use the "Test-Driven Development" approach to implement the UML class Interval, its attributes and operations.
-
Open the Maven module named
interval. -
Part of the implementation is already done: a Java class named
Intervalcontaining -
two methods is available, as well as several test cases.
-
There is only a partial implementation of the test cases: only the method comments and its signature . are available.
-
You have to write the body of the test methods.
|
Follow these steps to achieve the implementation of the method
|
|
Now start again the above steps to implement the method |