MCPcopy Index your code
hub / github.com/apache/groovy / testInvokeMethod

Method testInvokeMethod

src/test/groovy/groovy/lang/SequenceTest.java:273–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271 }
272
273 public void testInvokeMethod() {
274 Sequence sequence = new Sequence(String.class);
275 sequence.add("hello");
276 sequence.add("world");
277
278 List result = (List) sequence.invokeMethod("toUpperCase", null);
279
280 assertEquals(2, result.size());
281 assertEquals("HELLO", result.get(0));
282 assertEquals("WORLD", result.get(1));
283 }
284
285 public void testGetProperty() {
286 Sequence sequence = new Sequence(String.class);

Callers

nothing calls this directly

Calls 5

addMethod · 0.95
invokeMethodMethod · 0.95
sizeMethod · 0.65
getMethod · 0.65
assertEqualsMethod · 0.45

Tested by

no test coverage detected