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

Method testMetaClass

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

Source from the content-addressed store, hash-verified

32final class MetaClassTest {
33
34 @Test
35 void testMetaClass() {
36 Class<?> foo = String[].class;
37 System.out.println(foo + " name: " + foo.getName());
38
39 MetaClass metaClass = InvokerHelper.getMetaClass(this);
40
41 assertNotNull(metaClass, "got metaclass");
42
43 metaClass.invokeMethod(this, "doSomething", new Object[0]);
44 }
45
46 @Test
47 void testArray() {

Callers

nothing calls this directly

Calls 5

getMetaClassMethod · 0.95
invokeMethodMethod · 0.95
assertNotNullMethod · 0.80
getNameMethod · 0.65
printlnMethod · 0.45

Tested by

no test coverage detected