Test method for groovy.lang.EmptyRange#get(int).
()
| 133 | * Test method for {@link groovy.lang.EmptyRange#get(int)}. |
| 134 | */ |
| 135 | public void testGet() { |
| 136 | try { |
| 137 | range.get(0); |
| 138 | fail("got value from empty range"); |
| 139 | } catch (IndexOutOfBoundsException e) { |
| 140 | assertTrue("expected exception thrown", true); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Test method for {@link groovy.lang.EmptyRange#remove(int)}. |