Question: 1 pt- identify the appropriate test cases required. 2 pts- code for Junit testing that covers isDouble) and compareTo(Domino) methods NumberGuesser The NumberGuesser class will

 1 pt- identify the appropriate test cases required. 2 pts- code

for Junit testing that covers isDouble) and compareTo(Domino) methods NumberGuesser The NumberGuesser

1 pt- identify the appropriate test cases required. 2 pts- code for Junit testing that covers isDouble) and compareTo(Domino) methods NumberGuesser The NumberGuesser class will set a goal number, and then the user int: theNumber -int: rangeMin can then guess the number. The constructor will take in a min and max range, inclusively. You may use the setRandomNumber method to set a random value to+ getRangeMaximum): int NumberGuesser(int min, int max) +guess(int): int +getNumber): int + getRangeMinimum): int guess Or, you may set the number yourself using the setNumber method. The guess method will return -1 if the guess is too low, 1 if it is too high, and O if it is correct. +setRandom Number): int +setNumber(int): int 1. Identify the scenarios that would be required to fully test the guess method. 2. Write the NumberGuesserTest class public class NumberGuesserTest //Instance variables @Before public void setUp ) throws Exception // Test guess Method

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!