MCPcopy
hub / github.com/apache/groovy / testGet

Method testGet

src/test/groovy/groovy/lang/EmptyRangeTest.java:135–142  ·  view source on GitHub ↗

Test method for groovy.lang.EmptyRange#get(int).

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
failMethod · 0.45

Tested by

no test coverage detected