()
| 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() { |
nothing calls this directly
no test coverage detected