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

Method replace

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

Source from the content-addressed store, hash-verified

38 assertEquals(list.get(1), "Insert");
39 }
40 @Test
41 public void replace() {
42 System.out.println("Running testReplace()");
43 assertEquals(list.size(), 3);
44 list.set(1, "Replace");
45 assertEquals(list.size(), 3);
46 assertEquals(list.get(1), "Replace");
47 }
48 // A helper method to simplify the code. As
49 // long as it's not annotated with @Test, it will
50 // not be automatically executed by JUnit.

Callers 5

mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
thisClassMethod · 0.80
FunctionCompositionClass · 0.80

Calls 3

setMethod · 0.65
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected