Home | History | Annotate | Download | only in lang

Lines Matching refs:TestClass

60     public static class TestClass {
83 public TestClass() {
87 private TestClass(Object o) {
91 public static class SubTestClass extends TestClass {
233 TestClass.class.getConstructor(new Class[0]);
235 TestClass.class.getConstructor(Object.class);
246 Constructor[] c = TestClass.class.getConstructors();
261 Constructor<TestClass> c = TestClass.class.getDeclaredConstructor(new Class[0]);
263 c = TestClass.class.getDeclaredConstructor(Object.class);
270 Constructor[] c = TestClass.class.getDeclaredConstructors();
278 Field f = TestClass.class.getDeclaredField("pubField");
279 assertEquals("Returned incorrect field", 2, f.getInt(new TestClass()));
286 Field[] f = TestClass.class.getDeclaredFields();
298 Method m = TestClass.class.getDeclaredMethod("pubMethod", new Class[0]);
299 assertEquals("Returned incorrect method", 2, ((Integer) (m.invoke(new TestClass())))
301 m = TestClass.class.getDeclaredMethod("privMethod", new Class[0]);
308 Method[] m = TestClass.class.getDeclaredMethods();
318 assertEquals(ClassTest.class, TestClass.class.getDeclaringClass());
325 Field f = TestClass.class.getField("pubField");
326 assertEquals("Returned incorrect field", 2, f.getInt(new TestClass()));
328 f = TestClass.class.getField("privField");
339 Field[] f = TestClass.class.getFields();
365 Method m = TestClass.class.getMethod("pubMethod", new Class[0]);
366 assertEquals("Returned incorrect method", 2, ((Integer) (m.invoke(new TestClass())))
369 m = TestClass.class.getMethod("privMethod", new Class[0]);
381 Method[] m = TestClass.class.getMethods();
501 clazz1 = TestClass.class;