Home
last modified time | relevance | path

Searched refs:enumColorMap (Results 1 – 2 of 2) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DEnumMapTest.java103 EnumMap enumColorMap = new EnumMap<Color, Double>(Color.class); in test_ConstructorLjava_lang_Class() local
104 assertNull("Return non-null for non mapped key", enumColorMap.put( in test_ConstructorLjava_lang_Class()
107 enumColorMap.get(Color.Green)); in test_ConstructorLjava_lang_Class()
148 EnumMap enumColorMap = null; in test_ConstructorLjava_util_EnumMap() local
150 enumMap = new EnumMap(enumColorMap); in test_ConstructorLjava_util_EnumMap()
156 enumColorMap = new EnumMap<Color, Double>(Color.class); in test_ConstructorLjava_util_EnumMap()
158 enumColorMap.put(Color.Green, 2); in test_ConstructorLjava_util_EnumMap()
159 enumColorMap.put(Color.Blue, double1); in test_ConstructorLjava_util_EnumMap()
161 enumMap = new EnumMap(enumColorMap); in test_ConstructorLjava_util_EnumMap()
182 Map enumColorMap = null; in test_ConstructorLjava_util_Map() local
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DEnumTest.java220 HashMap<Color, Integer> enumColorMap = new HashMap<Color, Integer>(); in testSerializationSelf() local
221 enumColorMap.put(Color.Red, 1); in testSerializationSelf()
222 enumColorMap.put(Color.Blue, 3); in testSerializationSelf()
224 Object[] testCases = { enumColorMap, Sample.CURLY }; in testSerializationSelf()
249 HashMap<Color, Integer> enumColorMap = new HashMap<Color, Integer>(); in testSerializationCompatibility() local
250 enumColorMap.put(Color.Red, 1); in testSerializationCompatibility()
251 enumColorMap.put(Color.Blue, 3); in testSerializationCompatibility()
257 enumColorMap, }; in testSerializationCompatibility()