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

Method testString

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

Source from the content-addressed store, hash-verified

55 }
56
57 @Test
58 void testString() {
59 String value = "hello";
60
61 MetaClass metaClass = InvokerHelper.getMetaClass(value);
62
63 assertNotNull(metaClass, "got metaclass");
64
65 Object answer = metaClass.invokeMethod(value, "toString", new Object[0]);
66
67 assertEquals("hello", answer);
68 }
69
70 @Test
71 void testObject() {

Callers

nothing calls this directly

Calls 4

getMetaClassMethod · 0.95
invokeMethodMethod · 0.95
assertNotNullMethod · 0.80
assertEqualsMethod · 0.45

Tested by

no test coverage detected