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

Method testArray

src/test/groovy/groovy/lang/MetaClassTest.java:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 @Test
47 void testArray() {
48 String[] value = new String[]{"hello"};
49
50 MetaClass metaClass = InvokerHelper.getMetaClass(value);
51
52 assertNotNull(metaClass, "got metaclass");
53
54 metaClass.invokeMethod(value, "toString", new Object[0]);
55 }
56
57 @Test
58 void testString() {

Callers

nothing calls this directly

Calls 3

getMetaClassMethod · 0.95
invokeMethodMethod · 0.95
assertNotNullMethod · 0.80

Tested by

no test coverage detected