MCPcopy Create free account
hub / github.com/apache/groovy / testMethods

Method testMethods

src/test/groovy/groovy/inspect/InspectorTest.java:147–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 }
146
147 @Test
148 public void testMethods() {
149 Inspector inspector = new Inspector(new Object());
150 Object[] methods = inspector.getMethods();
151 assertEquals(10, methods.length);
152 String[] names = {"hashCode", "getClass", "wait", "wait", "wait", "equals", "notify", "notifyAll", "toString", "java.lang.Object"};
153 assertNameEquals(names, methods);
154 String[] details = {"JAVA", "public final", "Object", "void", "wait", "long, int", "InterruptedException"};
155 assertContains(methods, details);
156 // ctors are not considered static !
157 String[] ctorDetails = {"JAVA", "public", "Object", "Object", "java.lang.Object", "", ""};
158 assertContains(methods, ctorDetails);
159 }
160
161 @Test
162 public void testStaticMethods() {

Callers

nothing calls this directly

Calls 4

getMethodsMethod · 0.95
assertNameEqualsMethod · 0.95
assertContainsMethod · 0.95
assertEqualsMethod · 0.45

Tested by

no test coverage detected