ecall the SpecificBox. When testing your class, what is the minimum number of test cases that should be used? Provide these (minimum number of) test cases in a text file called tests.txt. Each test case in the file should have the following format (for example, if this is your 3rd test) // Test 3 // TESTING - testing XYZ box1 = new SpecificBox(label1, location1, size1); box2 = new SpecificBox(label2, location2, size2); expected = exp; // an integer actual = box1.comppareTo(box2); Here, label1, label2, location1, location2, size1, size2, and exp are values you supply. The TESTING comment should provide a brief description of what is being tested. Note that pasting any of your test cases in to the following code should work: SpecificBox box1, box2; int expected, actual; // // your test copied here
Recall the SpecificBox. When testing your class, what is the
minimum number of test cases that should be used? Provide these (minimum number of) test
cases in a text file called tests.txt. Each test case in the file should have the following format
(for example, if this is your 3rd test)
// Test 3
// TESTING - testing XYZ
box1 = new SpecificBox(label1, location1, size1);
box2 = new SpecificBox(label2, location2, size2);
expected = exp; // an integer
actual = box1.comppareTo(box2);
Here, label1, label2, location1, location2, size1, size2, and exp are values you supply. The
TESTING comment should provide a brief description of what is being tested. Note that pasting
any of your test cases in to the following code should work:
SpecificBox box1, box2;
int expected, actual;
//
// your test copied here
//
System.out.println("test passed : " + (expected == actual);
At the end of your tests.txt file, briefly explain what you need these number of tests.
Step by step
Solved in 2 steps