Answered step by step
Verified Expert Solution
Question
1 Approved Answer
n this exercise, you will write a set of JUnit test cases for a class called Balloon that models a simple toy balloon. See the
n this exercise, you will write a set of JUnit test cases for a class called Balloon that models a simple toy balloon. See the javadoc for the Balloon class here. There are 5 rersions of this class for you to try your tests on. Your task is to write a comprehensive set of unit test cases that enables you to identify what is wrong in the buggy versions, without seeing the source code. (This is sometimes called "black-box" style testing, since we can't see inside the implementation.) Write a set of unit test cases for Balloon. Each test case should focus on checking one simple fact about the behavior of the class. For example you might start by making a list of statements such as A newly constructed Balloon should have radius zero. A newly constructed Balloon should not be popped. After calling blow(5) on a Balloon with maximum radius 10 , the radius should be 5. Study the javadoc and write down some more facts that you might want to verify. Each of these facts becomes a test case. Write enough test cases that you would be comfortable spending your own hard-earned money on one of these alloon objects, confident that it will work correctly. Canctruekar Summury Combucier and Reresipaian DLLlasa; int asx: the telba:n ixdoforsal (-ais in cerry aril is rat pareptal
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