Home
last modified time | relevance | path

Searched refs:TestClass (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/test/java/net/SocketOptions/
DOptionsTest.java42 static class TestClass { class in OptionsTest
43 TestClass(SocketOption<?> option, Object testValue) { in TestClass() method in OptionsTest.TestClass
47 static TestClass create(SocketOption<?> option, Object testValue) { in create()
48 return new TestClass(option, testValue); in create()
58 static TestClass[] socketTests = new TestClass[] {
59 TestClass.create(StandardSocketOptions.SO_KEEPALIVE, Boolean.TRUE),
60 TestClass.create(StandardSocketOptions.SO_SNDBUF, Integer.valueOf(10 * 100)),
61 TestClass.create(StandardSocketOptions.SO_RCVBUF, Integer.valueOf(8 * 100)),
62 TestClass.create(StandardSocketOptions.SO_REUSEADDR, Boolean.FALSE),
63 TestClass.create(StandardSocketOptions.SO_REUSEPORT, Boolean.FALSE),
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java59 public static class TestClass { class in ClassTest
82 public TestClass() { in TestClass() method in ClassTest.TestClass
86 private TestClass(Object o) { in TestClass() method in ClassTest.TestClass
90 public static class SubTestClass extends TestClass {
233 TestClass.class.getConstructor(new Class[0]); in test_getConstructor$Ljava_lang_Class()
235 TestClass.class.getConstructor(Object.class); in test_getConstructor$Ljava_lang_Class()
246 Constructor[] c = TestClass.class.getConstructors(); in test_getConstructors()
261 Constructor<TestClass> c = TestClass.class.getDeclaredConstructor(new Class[0]); in test_getDeclaredConstructor$Ljava_lang_Class()
263 c = TestClass.class.getDeclaredConstructor(Object.class); in test_getDeclaredConstructor$Ljava_lang_Class()
270 Constructor[] c = TestClass.class.getDeclaredConstructors(); in test_getDeclaredConstructors()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DAccessibleObjectTest.java33 public class TestClass { class in AccessibleObjectTest
40 public class SubTestClass extends TestClass{
96 AccessibleObject ao = TestClass.class.getField("aField"); in test_isAccessible()
112 AccessibleObject ao = TestClass.class.getField("aField"); in test_setAccessible$Ljava_lang_reflect_AccessibleObjectZ()
127 AccessibleObject ao = TestClass.class.getField("aField"); in test_setAccessible()
DFieldTest.java44 public class TestClass { class in FieldTest
1538 Field field = TestClass.class.getField("annotatedField"); in test_getDeclaredAnnotations()
1560 field = TestClass.class.getDeclaredField("annotatedField"); in test_isEnumConstant()
1566 Field[] fields = TestClass.Inner.class.getDeclaredFields(); in test_isSynthetic()
1575 field = TestClass.class.getDeclaredField("annotatedField"); in test_isSynthetic()
1622 Field field = TestClass.class.getDeclaredField("annotatedField"); in test_hashCode()
/libcore/luni/src/test/java/libcore/libcore/util/
DNativeAllocationRegistryTest.java48 private static class TestClass { class in NativeAllocationRegistryTest
93 TestClass.class, getNativeFinalizer(), nativeSize) in testNativeAllocation()
99 TestClass.class, getNativeFinalizer(), nativeSize) in testNativeAllocation()
156 if (m.getClassName().equals(TestClass.class.getName())) { in testNativeAllocation()
172 assertTrue("No metrics for " + TestClass.class.getName(), hasTestClassMetrics); in testNativeAllocation()
/libcore/test-rules/src/main/java/libcore/junit/junit3/
DTestCaseWithRules.java30 import org.junit.runners.model.TestClass;
46 private final TestClass testClass;
51 testClass = new TestClass(getClass()); in TestCaseWithRules()
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java157 public static class TestClass { class in OldClassTest
180 public TestClass() { in TestClass() method in OldClassTest.TestClass
184 private TestClass(Object o) { in TestClass() method in OldClassTest.TestClass
188 public static class SubTestClass extends TestClass {
721 TestClass.class.getDeclaredConstructor(String.class); in test_getDeclaredConstructor$Ljava_lang_Class()
730 TestClass.class.getDeclaredField(null); in test_getDeclaredFieldLjava_lang_String()
737 TestClass.class.getDeclaredField("NonExistentField"); in test_getDeclaredFieldLjava_lang_String()
746 TestClass.class.getDeclaredMethod(null, new Class[0]); in test_getDeclaredMethodLjava_lang_String$Ljava_lang_Class()
753 TestClass.class.getDeclaredMethod("NonExistentMethod", new Class[0]); in test_getDeclaredMethodLjava_lang_String$Ljava_lang_Class()
766 m = TestClass.class.getMethod("init", new Class[0]); in test_getMethodLjava_lang_String$Ljava_lang_Class()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/pkg1/
DTestClass.java26 public class TestClass implements Serializable { class
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/pkg2/
DTestClass.java26 public class TestClass implements Serializable { class
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/pkg2/
DTestClass.java26 public class TestClass implements Serializable { class
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/pkg1/
DTestClass.java26 public class TestClass implements Serializable { class
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java1070 return org.apache.harmony.luni.tests.pkg2.TestClass.class; in resolveClass()
1077 …org.apache.harmony.luni.tests.pkg1.TestClass to1 = new org.apache.harmony.luni.tests.pkg1.TestClas… in test_resolveClass()
1086 …org.apache.harmony.luni.tests.pkg2.TestClass to2 = (org.apache.harmony.luni.tests.pkg2.TestClass) … in test_resolveClass()