gdamour 2005/10/18 21:47:56
Modified: modules/itests/src/itest/org/openejb/test/entity/cmp2
StorageTests.java
Log:
GERONIMO-1090 By default, CMP fields of type char should be mapped to the
CHAR SQL type.
Add an integration test.
Revision Changes Path
1.3 +8 -1
openejb/modules/itests/src/itest/org/openejb/test/entity/cmp2/StorageTests.java
Index: StorageTests.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/itests/src/itest/org/openejb/test/entity/cmp2/StorageTests.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- StorageTests.java 31 Jul 2005 19:32:23 -0000 1.2
+++ StorageTests.java 19 Oct 2005 01:47:56 -0000 1.3
@@ -90,6 +90,13 @@
assertTrue(Arrays.equals(testdata, readblob));
}
+ public void testChar() throws Exception {
+ char expectedChar = 'c';
+ storage.setChar(expectedChar);
+ char readChar = storage.getChar();
+ assertEquals(expectedChar, readChar);
+ }
+
protected void setUp() throws Exception {
Properties properties =
TestManager.getServer().getContextEnvironment();
properties.put(Context.SECURITY_PRINCIPAL, "ENTITY_TEST_CLIENT");