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

Method insert

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

Source from the content-addressed store, hash-verified

30 System.out.println("Cleaning up " + list.getId());
31 }
32 @Test
33 public void insert() {
34 System.out.println("Running testInsert()");
35 assertEquals(list.size(), 3);
36 list.add(1, "Insert");
37 assertEquals(list.size(), 4);
38 assertEquals(list.get(1), "Insert");
39 }
40 @Test
41 public void replace() {
42 System.out.println("Running testReplace()");

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected