()
| 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. |