diff --git a/src/test/org/apache/commons/lang/enum/EnumTest.java b/src/test/org/apache/commons/lang/enum/EnumTest.java
index 0ae49beda..bf1352245 100644
--- a/src/test/org/apache/commons/lang/enum/EnumTest.java
+++ b/src/test/org/apache/commons/lang/enum/EnumTest.java
@@ -66,7 +66,7 @@ import org.apache.commons.lang.SerializationUtils;
* Test cases for the {@link Enum} class.
*
* @author Stephen Colebourne
- * @version $Id: EnumTest.java,v 1.1 2002/08/11 23:17:54 scolebourne Exp $
+ * @version $Id: EnumTest.java,v 1.2 2002/10/13 18:41:24 sullis Exp $
*/
public final class EnumTest extends TestCase {
@@ -114,6 +114,12 @@ public final class EnumTest extends TestCase {
public void testList() {
List list = ColorEnum.getEnumList();
+
+ assertNotNull(list);
+
+ assertEquals( list.size(),
+ ColorEnum.getEnumMap().keySet().size());
+
Iterator it = list.iterator();
assertSame(ColorEnum.RED, it.next());
assertSame(ColorEnum.GREEN, it.next());
@@ -122,6 +128,12 @@ public final class EnumTest extends TestCase {
public void testMap() {
Map map = ColorEnum.getEnumMap();
+
+ assertNotNull(map);
+
+ assertEquals( map.keySet().size(),
+ ColorEnum.getEnumList().size());
+
assertTrue(map.containsValue(ColorEnum.RED));
assertTrue(map.containsValue(ColorEnum.GREEN));
assertTrue(map.containsValue(ColorEnum.BLUE));
diff --git a/src/test/org/apache/commons/lang/enum/ValuedEnumTest.java b/src/test/org/apache/commons/lang/enum/ValuedEnumTest.java
index 4544bddf1..523302bf7 100644
--- a/src/test/org/apache/commons/lang/enum/ValuedEnumTest.java
+++ b/src/test/org/apache/commons/lang/enum/ValuedEnumTest.java
@@ -66,7 +66,7 @@ import org.apache.commons.lang.SerializationUtils;
* Test cases for the {@link Enum} class.
*
* @author Stephen Colebourne
- * @version $Id: ValuedEnumTest.java,v 1.1 2002/08/11 23:17:54 scolebourne Exp $
+ * @version $Id: ValuedEnumTest.java,v 1.2 2002/10/13 18:42:06 sullis Exp $
*/
public final class ValuedEnumTest extends TestCase {
@@ -120,6 +120,12 @@ public final class ValuedEnumTest extends TestCase {
public void testList() {
List list = ValuedColorEnum.getEnumList();
+
+ assertNotNull(list);
+
+ assertEquals( list.size(),
+ ValuedColorEnum.getEnumMap().keySet().size());
+
Iterator it = list.iterator();
assertSame(ValuedColorEnum.RED, it.next());
assertSame(ValuedColorEnum.GREEN, it.next());
@@ -128,6 +134,12 @@ public final class ValuedEnumTest extends TestCase {
public void testMap() {
Map map = ValuedColorEnum.getEnumMap();
+
+ assertNotNull(map);
+
+ assertEquals( map.keySet().size(),
+ ValuedColorEnum.getEnumList().size());
+
assertTrue(map.containsValue(ValuedColorEnum.RED));
assertTrue(map.containsValue(ValuedColorEnum.GREEN));
assertTrue(map.containsValue(ValuedColorEnum.BLUE));