Question: Unlock Test Case / / * answer is not false, or true, or any of the exceptions listed. / / public void test 6 6

Unlock Test Case
//*answer is not false, or true, or any of the exceptions listed.
//
public void test66(){
BallCollection bc = new Ballcollection();
// Give the string of the result or name of exception
//"it" was never assigned and so it is null;
assertEqualsOrException("NullPointerException",()-> it.hasNext());
it = bc.iterator();
assertEqualsOrException("false",()-> it.hasNext());
assertEqualsOrException("NoSuchElementException",()-> it.next());
bc.add(e[1]); // added a ball
assertEqualsOrException(???,()-> it.hasNext());
String
Unlock Test Case / / * answer is not false, or

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 Programming Questions!