Skip to content

Commit 7debccf

Browse files
author
Nguyen Nam Thai
committed
Fix a test
1 parent c1787cc commit 7debccf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core-java/src/test/java/com/baeldung/java/list/CustomListUnitTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public void whenIteratorNextIsCalledTwice_thenTheSecondReturnsFalse() {
276276
list.add("baeldung");
277277
Iterator<Object> iterator = list.iterator();
278278

279-
assertTrue(iterator.hasNext());
279+
iterator.next();
280280
assertFalse(iterator.hasNext());
281281
}
282282
}

0 commit comments

Comments
 (0)