Beispiel #1
0
 public void testExtended3List() {
     List list = Extended3Enum.getEnumList();
     assertNotNull(list);
     assertEquals(4, list.size());
     assertEquals(list.size(), Extended3Enum.getEnumMap().keySet().size());
     
     Iterator it = list.iterator();
     assertSame(Extended3Enum.ALPHA, it.next());
     assertSame(Extended3Enum.BETA, it.next());
     assertSame(Extended3Enum.GAMMA, it.next());
     assertSame(Extended3Enum.DELTA, it.next());
 }
Beispiel #2
0
 public void testExtended3Map() {
     Map map = Extended3Enum.getEnumMap();
     assertNotNull(map);
     assertEquals(map.keySet().size(), Extended3Enum.getEnumList().size());
     
     assertTrue(map.containsValue(Extended3Enum.ALPHA));
     assertTrue(map.containsValue(Extended3Enum.BETA));
     assertTrue(map.containsValue(Extended3Enum.GAMMA));
     assertTrue(map.containsValue(Extended3Enum.DELTA));
     assertSame(Extended3Enum.ALPHA, map.get("Alpha"));
     assertSame(Extended3Enum.BETA, map.get("Beta"));
     assertSame(Extended3Enum.GAMMA, map.get("Gamma"));
     assertSame(Extended3Enum.DELTA, map.get("Delta"));
 }