Home
last modified time | relevance | path

Searched refs:MyEnum (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidEnumTest.java25 enum MyEnum { enum in OldAndroidEnumTest
40 assertTrue(MyEnum.ZERO.compareTo(MyEnum.ONE) < 0); in testEnum()
41 assertEquals(MyEnum.ZERO, MyEnum.ZERO); in testEnum()
42 assertTrue(MyEnum.TWO.compareTo(MyEnum.ONE) > 0); in testEnum()
43 assertTrue(MyEnum.FOUR.compareTo(MyEnum.ONE) > 0); in testEnum()
45 assertEquals("ONE", MyEnum.ONE.name()); in testEnum()
46 assertSame(MyEnum.ONE.getDeclaringClass(), MyEnum.class); in testEnum()
47 assertSame(MyEnum.FOUR.getDeclaringClass(), MyEnum.class); in testEnum()
49 assertTrue(MyEnum.FOUR.isFour()); in testEnum()
51 MyEnum e; in testEnum()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectOutputStream2Test.java30 private static enum MyEnum { enum in ObjectOutputStream2Test
50 os.writeObject(MyEnum.TWO); in test_writeReadEnum()
57 assertSame(MyEnum.TWO, readObj); in test_writeReadEnum()
/libcore/json/src/test/java/libcore/org/json/
DJSONArrayTest.java560 enum MyEnum { A, B, C; } enum in JSONArrayTest
569 JSONArray a2 = new JSONArray(MyEnum.values()); in testEnums()