Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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