chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sklev...@apache.org
Subject svn commit: r1041299 - /incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractTransientObjectIT.java
Date Thu, 02 Dec 2010 07:54:36 GMT
Author: sklevenz
Date: Thu Dec  2 07:54:36 2010
New Revision: 1041299

URL: http://svn.apache.org/viewvc?rev=1041299&view=rev
Log:
Spend some FIT tests for testing transient API.

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractTransientObjectIT.java

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractTransientObjectIT.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractTransientObjectIT.java?rev=1041299&r1=1041298&r2=1041299&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractTransientObjectIT.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractTransientObjectIT.java
Thu Dec  2 07:54:36 2010
@@ -31,7 +31,6 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.UUID;
 
-import org.apache.chemistry.opencmis.client.api.CmisObject;
 import org.apache.chemistry.opencmis.client.api.Document;
 import org.apache.chemistry.opencmis.client.api.Folder;
 import org.apache.chemistry.opencmis.client.api.ObjectId;
@@ -179,15 +178,11 @@ public abstract class AbstractTransientO
 		assertEquals(tfolder.getProperty(PropertyIds.NAME).getValueAsString(), newFolderName);
 		
 		tfolder.save();
+		session2.clear();
 
 		ObjectId id = this.session2.createObjectId(tfolder.getId());
 		
-		// prepare new non-cache operation context
-		OperationContext oc = this.session.createOperationContext();
-		oc.setFilterString("*");
-		oc.setCacheEnabled(false);
-		
-		Folder folder3 = (Folder) this.session2.getObject(id, oc);
+		Folder folder3 = (Folder) this.session2.getObject(id);
 		assertNotNull(folder3);
 		assertEquals(folder3.getProperty(PropertyIds.NAME).getValueAsString(), newFolderName);
 	}
@@ -210,15 +205,11 @@ public abstract class AbstractTransientO
 		assertEquals(tdoc.getProperty(PropertyIds.NAME).getValueAsString(), newDocName);
 		
 		tdoc.save();
+		session2.clear();
 
 		ObjectId id = this.session2.createObjectId(tdoc.getId());
-		
-		// prepare new non-cache operation context
-		OperationContext oc = this.session.createOperationContext();
-		oc.setFilterString("*");
-		oc.setCacheEnabled(false);
-		
-		Document doc3 = (Document) this.session2.getObject(id, oc);
+				
+		Document doc3 = (Document) this.session2.getObject(id);
 		assertNotNull(doc3);
 		assertEquals(doc3.getProperty(PropertyIds.NAME).getValueAsString(), newDocName);
 	}



Mime
View raw message