cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r582778 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ExtendedTypeMapEnumsTest.java
Date Mon, 08 Oct 2007 11:03:38 GMT
Author: aadamchik
Date: Mon Oct  8 04:03:32 2007
New Revision: 582778

URL: http://svn.apache.org/viewvc?rev=582778&view=rev
Log:
adding extra test for enum types

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ExtendedTypeMapEnumsTest.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ExtendedTypeMapEnumsTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ExtendedTypeMapEnumsTest.java?rev=582778&r1=582777&r2=582778&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ExtendedTypeMapEnumsTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/types/ExtendedTypeMapEnumsTest.java
Mon Oct  8 04:03:32 2007
@@ -64,4 +64,11 @@
         assertNull(map.createType(MockEnum.class.getName()));
         assertNull(map.createType(MockEnum2.class.getName()));
     }
+
+    public void testGetType() {
+        ExtendedTypeMap map = new ExtendedTypeMap();
+        ExtendedType type = map.getRegisteredType(MockEnum.class.getName());
+        assertNotNull(type);
+        assertTrue(type instanceof EnumType);
+    }
 }



Mime
View raw message