Searched refs:enumSet (Results 1 – 2 of 2) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | EnumSetTest.java | 179 EnumSet<EnumFoo> enumSet = EnumSet.allOf(EnumFoo.class); in test_AllOf_LClass() local 180 assertEquals("Size of enumSet should be 64", 64, enumSet.size()); in test_AllOf_LClass() 183 "enumSet should not contain null value", enumSet.contains(null)); in test_AllOf_LClass() 185 "enumSet should contain EnumFoo.a", enumSet.contains(EnumFoo.a)); in test_AllOf_LClass() 187 "enumSet should contain EnumFoo.b", enumSet.contains(EnumFoo.b)); in test_AllOf_LClass() 189 enumSet.add(EnumFoo.a); in test_AllOf_LClass() 190 assertEquals("Should be equal", 64, enumSet.size()); in test_AllOf_LClass() 193 assertEquals("Should be equal", enumSet, anotherSet); in test_AllOf_LClass() 194 assertNotSame("Should not be identical", enumSet, anotherSet); in test_AllOf_LClass() 1015 EnumSet<EnumWithInnerClass> enumSet = EnumSet in test_CopyOf_LEnumSet() local [all …]
|
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleBaseByteArrayTest.java | 68 static EnumSet<MemoryMode> enumSet(int bitSet) { in enumSet() method in VarHandleBaseByteArrayTest.MemoryMode 90 return s.getClass().getCanonicalName() + " " + MemoryMode.enumSet(memoryModes); in toString() 139 return s + " " + MemoryMode.enumSet(memoryModes); in toString() 175 return " VarHandle " + MemoryMode.enumSet(memoryModes); in toString()
|