MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / addAll

Method addAll

validating/tests/CountedListTest.java:68–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 compare(list, new String[] { "0", "2" });
67 }
68 @Test
69 public void addAll() {
70 System.out.println("Running testAddAll()");
71 list.addAll(Arrays.asList(new String[] {
72 "An", "African", "Swallow"}));
73 assertEquals(list.size(), 6);
74 compare(list, new String[] { "0", "1", "2",
75 "An", "African", "Swallow" });
76 }
77}
78/* Output:
79>>> Starting CountedListTest

Callers 15

mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
basicTestMethod · 0.80
testVisualMethod · 0.80
testLinkedListMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80

Calls 2

compareMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected