Answered step by step
Verified Expert Solution
Question
1 Approved Answer
omino Test Create a Domino class based on the following class uml: The isDouble) method returns a boolean if the two sides are the same.
omino Test Create a Domino class based on the following class uml: The isDouble) method returns a boolean if the two sides are the same. The getValue) method returns the sum of the two sides. The compareTo(Domino) method returns a -1 if the passed in domino has a greater value, 0 if they have the same value, and 1 the passed in domino has a lesser value. Create a jUnit test to test the isouble Domino getValue() and compareTo(Domino) methods Goals: side1: int -side2: int + Domino(int, int) +isDouble() boolean +getValue(): int +compareTo(Domino): int .Implement a jUnit test. Assignment tips: Implement each method and test indiviually as you add each method. Be sure to create enough sample cases to cover all the possibile scenarios. If your class does not complile, you will recieve a0. Correctly implement the Domino class: 4 points Fully test isDouble0 method: 2 points Fully test getValue0 method: 2 points Fully test compareTDomino) method: 2 points
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started