()
| 19 | } |
| 20 | |
| 21 | public void abc() throws Exception { |
| 22 | assertEquals(true, true); |
| 23 | assertEquals(true, false); |
| 24 | |
| 25 | assertNotEquals(null, false); |
| 26 | assertNotEquals(true, true); |
| 27 | |
| 28 | assertArrayEquals(new Integer[] {1, 2, 3}, |
| 29 | new Integer[] {1, 2, 3}); |
| 30 | assertArrayEquals(new Integer[] {1, 2, 3}, |
| 31 | new Integer[] {1, 2}); |
| 32 | assertArrayEquals(new Integer[] {1, 2, 3}, |
| 33 | new Integer[] {1, 2, 4}); |
| 34 | |
| 35 | assertThrows(NoSuchElementException.class, ()-> { throw new NoSuchElementException(); }); |
| 36 | assertThrows(NoSuchElementException.class, ()-> { throw new Exception("abc"); }); |
| 37 | assertThrows(NoSuchElementException.class, ()-> { System.gc(); }); |
| 38 | |
| 39 | for (int i = 0; i < 10; ++i) { |
| 40 | pushStack("i = " + i); |
| 41 | assertEquals(0, i % 2); |
| 42 | popStack(); |
| 43 | } |
| 44 | |
| 45 | throw new Exception("Unexpected in method"); |
| 46 | } |
| 47 | } |
nothing calls this directly
no test coverage detected