incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r280098 - in /incubator/graffito/trunk/jcr-mapping/src: test-config/jcrmapping.xml test/org/apache/portals/graffito/jcr/persistence/impl/AtomicTest.java
Date Sun, 11 Sep 2005 08:54:36 GMT
Author: clombart
Date: Sun Sep 11 01:54:31 2005
New Revision: 280098

URL: http://svn.apache.org/viewcvs?rev=280098&view=rev
Log:
Add unit test for "atomic type" fields

Modified:
    incubator/graffito/trunk/jcr-mapping/src/test-config/jcrmapping.xml
    incubator/graffito/trunk/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/impl/AtomicTest.java

Modified: incubator/graffito/trunk/jcr-mapping/src/test-config/jcrmapping.xml
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr-mapping/src/test-config/jcrmapping.xml?rev=280098&r1=280097&r2=280098&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr-mapping/src/test-config/jcrmapping.xml (original)
+++ incubator/graffito/trunk/jcr-mapping/src/test-config/jcrmapping.xml Sun Sep 11 01:54:31
2005
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!DOCTYPE graffito-jcr PUBLIC "-//The Apache Software Foundation//DTD Repository//EN"
"..\dtd\graffito-jcr-mapping.dtd">
+<!DOCTYPE graffito-jcr PUBLIC "-//The Apache Software Foundation//DTD Repository//EN"
"../dtd/graffito-jcr-mapping.dtd">
 <graffito-jcr>
   
     <class-descriptor
@@ -11,7 +11,7 @@
 		<field-descriptor fieldName="booleanPrimitive" jcrName="booleanPrimitive" />
 		<field-descriptor fieldName="integerObject" jcrName="integerObject" />
 		<field-descriptor fieldName="intPrimitive" jcrName="intPrimitive" />
-		<!-- field-descriptor fieldName="byteArray" jcrName="byteArray" / -->
+		<field-descriptor fieldName="byteArray" jcrName="byteArray" />
 		<field-descriptor fieldName="calandar" jcrName="calandar" />
 		<field-descriptor fieldName="date" jcrName="date" />
 				

Modified: incubator/graffito/trunk/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/impl/AtomicTest.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/impl/AtomicTest.java?rev=280098&r1=280097&r2=280098&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/impl/AtomicTest.java
(original)
+++ incubator/graffito/trunk/jcr-mapping/src/test/org/apache/portals/graffito/jcr/persistence/impl/AtomicTest.java
Sun Sep 11 01:54:31 2005
@@ -102,8 +102,8 @@
             assertTrue("Incorrect int primitive", a.getIntPrimitive() == 200);
             assertNotNull("String object is null", a.getString());
             assertTrue("Incorrect boolean object", a.getString().equals("Test String"));
-            //assertNotNull("Byte array object is null", a.getByteArray());
-            //assertTrue("Incorrect byte object", a.getByteArray().toString().equals("Test
String"));
+            assertNotNull("Byte array object is null", a.getByteArray());
+            assertTrue("Incorrect byte object", new String(a.getByteArray()).equals("Test
Byte"));
             
             assertNotNull("date object is null", a.getDate());
             assertNotNull("calendar object is null", a.getCalandar());



Mime
View raw message