jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r572788 - /jackrabbit/trunk/contrib/jackrabbit-jcr-mapping/jcr-mapping/src/test/java/org/apache/jackrabbit/ocm/manager/proxy/ProxyTest.java
Date Tue, 04 Sep 2007 19:33:46 GMT
Author: clombart
Date: Tue Sep  4 12:33:46 2007
New Revision: 572788

URL: http://svn.apache.org/viewvc?rev=572788&view=rev
Log:
uncomment unit tests

Modified:
    jackrabbit/trunk/contrib/jackrabbit-jcr-mapping/jcr-mapping/src/test/java/org/apache/jackrabbit/ocm/manager/proxy/ProxyTest.java

Modified: jackrabbit/trunk/contrib/jackrabbit-jcr-mapping/jcr-mapping/src/test/java/org/apache/jackrabbit/ocm/manager/proxy/ProxyTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/jackrabbit-jcr-mapping/jcr-mapping/src/test/java/org/apache/jackrabbit/ocm/manager/proxy/ProxyTest.java?rev=572788&r1=572787&r2=572788&view=diff
==============================================================================
--- jackrabbit/trunk/contrib/jackrabbit-jcr-mapping/jcr-mapping/src/test/java/org/apache/jackrabbit/ocm/manager/proxy/ProxyTest.java
(original)
+++ jackrabbit/trunk/contrib/jackrabbit-jcr-mapping/jcr-mapping/src/test/java/org/apache/jackrabbit/ocm/manager/proxy/ProxyTest.java
Tue Sep  4 12:33:46 2007
@@ -29,6 +29,7 @@
 import org.apache.jackrabbit.ocm.manager.ObjectContentManager;
 import org.apache.jackrabbit.ocm.testmodel.proxy.Detail;
 import org.apache.jackrabbit.ocm.testmodel.proxy.Main;
+import org.apache.jackrabbit.ocm.testmodel.proxy.NTDetail;
 import org.apache.jackrabbit.ocm.testmodel.proxy.NTMain;
 
 /**
@@ -203,6 +204,7 @@
 		
 	}
 
+
 	public void testNTCollectionconverterWithProxy() {
 
 		try {
@@ -222,15 +224,14 @@
 
             Collection result = main.getProxyCollection();
             assertNull("Collection is not null", result);
-            
-/*			
+            			
 			//---------------------------------------------------------------------------------------------------------
 			// Update  
 			//---------------------------------------------------------------------------------------------------------
 			ArrayList  details= new ArrayList();
 			for(int i=1; i<=100;i++)
 			{
-				Detail detail = new Detail();
+				NTDetail detail = new NTDetail();
 				detail.setField("field" + i);				
 				details.add(detail);
 			}
@@ -241,7 +242,7 @@
 			//---------------------------------------------------------------------------------------------------------
 			// Retrieve the main object
 			//---------------------------------------------------------------------------------------------------------
					
-			main = (NtMain) ocm.getObject( "/test");
+			main = (NTMain) ocm.getObject( "/test");
 			assertNotNull("main is null", main);
 
             result = main.getProxyCollection();
@@ -251,7 +252,7 @@
 			//---------------------------------------------------------------------------------------------------------
 			// Update  
 			//---------------------------------------------------------------------------------------------------------
           
-            Detail detail = new Detail();
+            NTDetail detail = new NTDetail();
 			detail.setField("newFieldValue");			
 			result.add(detail);
 			main.setProxyCollection(result);
@@ -261,11 +262,11 @@
 			//---------------------------------------------------------------------------------------------------------
 			// Retrieve the main object
 			//---------------------------------------------------------------------------------------------------------
					
-			main = (NtMain) ocm.getObject("/test");
+			main = (NTMain) ocm.getObject("/test");
 			assertNotNull("main  is null", main);
             assertEquals("Invalide size",main.getProxyCollection().size(), 101);
             
-*/
+
             //---------------------------------------------------------------------------------------------------------
 			// Delete the main object
 			//---------------------------------------------------------------------------------------------------------
					



Mime
View raw message