Merge pull request '更新 Junit 5 的测试类并且准备使用 main 分支' (#15) from code_bank into master
Reviewed-on: https://src.ossez.com/cwiki-us-docs/java-tutorials/pulls/15
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ public class JavaCollectionCleanupUnitTest {
|
||||
@Test
|
||||
public void givenListContainsNulls_whenRemovingNullsWithPlainJava_thenCorrect() {
|
||||
final List<Integer> list = Lists.newArrayList(null, 1, null);
|
||||
while (list.remove(null));
|
||||
while (list.remove(null)) ;
|
||||
|
||||
assertThat(list, hasSize(1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user