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

Method testObject

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

Source from the content-addressed store, hash-verified

68 }
69
70 @Test
71 void testObject() {
72 Object value = new Object();
73
74 MetaClass metaClass = InvokerHelper.getMetaClass(value);
75
76 assertNotNull(metaClass, "got metaclass");
77
78 metaClass.invokeMethod(value, "toString", new Object[0]);
79 }
80
81 @Test
82 void testPublicField() {

Callers

nothing calls this directly

Calls 3

getMetaClassMethod · 0.95
invokeMethodMethod · 0.95
assertNotNullMethod · 0.80

Tested by

no test coverage detected