chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcaru...@apache.org
Subject svn commit: r916711 - in /incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub: http/PatchRequest.java test/spec/VersionsTest.java
Date Fri, 26 Feb 2010 15:16:36 GMT
Author: dcaruana
Date: Fri Feb 26 15:16:35 2010
New Revision: 916711

URL: http://svn.apache.org/viewvc?rev=916711&view=rev
Log:
Fix CMIS-131: TCK: Don't use a PATCH method to update of private working copy
- also removed Patch request, to ensure no other current / future occurrences

Removed:
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/http/PatchRequest.java
Modified:
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java

Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java?rev=916711&r1=916710&r2=916711&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/VersionsTest.java
Fri Feb 26 15:16:35 2010
@@ -31,7 +31,6 @@
 import org.apache.chemistry.tck.atompub.TCKTest;
 import org.apache.chemistry.tck.atompub.http.DeleteRequest;
 import org.apache.chemistry.tck.atompub.http.GetRequest;
-import org.apache.chemistry.tck.atompub.http.PatchRequest;
 import org.apache.chemistry.tck.atompub.http.PostRequest;
 import org.apache.chemistry.tck.atompub.http.PutRequest;
 import org.apache.chemistry.tck.atompub.http.Request;
@@ -212,7 +211,7 @@
         // String guid = GUID.generate();
         String guid = System.currentTimeMillis() + "";
         updateFile = updateFile.replace("${NAME}", guid);
-        Request updateReq = new PatchRequest(pwc.getEditLink().getHref().toString(), updateFile,
CMISConstants.MIMETYPE_ENTRY);
+        Request updateReq = new PutRequest(pwc.getEditLink().getHref().toString(), updateFile,
CMISConstants.MIMETYPE_ENTRY);
         Response pwcUpdatedres = client.executeRequest(updateReq, 200);
         Assert.assertNotNull(pwcUpdatedres);
         Entry updated = model.parseEntry(new StringReader(pwcUpdatedres.getContentAsString()),
null);
@@ -230,7 +229,7 @@
         Map<String, String> args2 = new HashMap<String, String>();
         args2.put("checkinComment", guid);
         args2.put("checkin", "true");
-        Request checkinReq = new PatchRequest(checkinUrl, checkinFile, CMISConstants.MIMETYPE_ENTRY).setArgs(args2);
+        Request checkinReq = new PutRequest(checkinUrl, checkinFile, CMISConstants.MIMETYPE_ENTRY).setArgs(args2);
         Response checkinRes = client.executeRequest(checkinReq, 200);
         Assert.assertNotNull(checkinRes);
         String checkinResXML = checkinRes.getContentAsString();
@@ -303,7 +302,7 @@
         Map<String, String> args2 = new HashMap<String, String>();
         args2.put("checkinComment", guid);
         args2.put("checkin", "true");
-        Request checkinReq = new PatchRequest(checkinUrl, checkinFile, CMISConstants.MIMETYPE_ENTRY).setArgs(args2);
+        Request checkinReq = new PutRequest(checkinUrl, checkinFile, CMISConstants.MIMETYPE_ENTRY).setArgs(args2);
         Response checkinRes = client.executeRequest(checkinReq, 200);
         Assert.assertNotNull(checkinRes);
         String checkinResXML = checkinRes.getContentAsString();



Mime
View raw message