chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcaru...@apache.org
Subject svn commit: r829553 - in /incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec: QueryPagingTest.java QueryTest.java
Date Sun, 25 Oct 2009 12:15:40 GMT
Author: dcaruana
Date: Sun Oct 25 12:15:40 2009
New Revision: 829553

URL: http://svn.apache.org/viewvc?rev=829553&view=rev
Log:
Query tests now check for 201 status (as per spec) on query post.

Modified:
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/QueryPagingTest.java
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/QueryTest.java

Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/QueryPagingTest.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/QueryPagingTest.java?rev=829553&r1=829552&r2=829553&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/QueryPagingTest.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/QueryPagingTest.java
Sun Oct 25 12:15:40 2009
@@ -80,7 +80,7 @@
         queryReq = queryReq.replace("${SKIPCOUNT}", "0");
         queryReq = queryReq.replace("${MAXITEMS}", "4");
         Response queryRes = client.executeRequest(new PostRequest(queryHREF.toString(), queryReq,
-                CMISConstants.MIMETYPE_CMIS_QUERY), 200);
+                CMISConstants.MIMETYPE_CMIS_QUERY), 201);
         Assert.assertNotNull(queryRes);
 
         // retrieve entries for first page

Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/QueryTest.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/QueryTest.java?rev=829553&r1=829552&r2=829553&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/QueryTest.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/tck/atompub/test/spec/QueryTest.java
Sun Oct 25 12:15:40 2009
@@ -91,7 +91,7 @@
         queryReq = queryReq.replace("${MAXITEMS}", "5");
 
         Request postReq = new PostRequest(queryHREF.toString(), queryReq,  CMISConstants.MIMETYPE_CMIS_QUERY);
-        Response queryRes = client.executeRequest(postReq, 200);
+        Response queryRes = client.executeRequest(postReq, 201);
         Assert.assertNotNull(queryRes);
         Feed queryFeed = model.parseFeed(new StringReader(queryRes.getContentAsString()),
null);
         Assert.assertNotNull(queryFeed);
@@ -124,7 +124,7 @@
         queryReq = queryReq.replace("${MAXITEMS}", "5");
 
         Request postReq = new PostRequest(queryHREF.toString(), queryReq, CMISConstants.MIMETYPE_CMIS_QUERY);
-        Response queryRes = client.executeRequest(postReq, 200);
+        Response queryRes = client.executeRequest(postReq, 201);
         Assert.assertNotNull(queryRes);
         Feed queryFeed = model.parseFeed(new StringReader(queryRes.getContentAsString()),
null);
         Assert.assertNotNull(queryFeed);
@@ -157,7 +157,7 @@
         queryReq = queryReq.replace("${MAXITEMS}", "5");
 
         Request postReq = new PostRequest(queryHREF.toString(), queryReq, CMISConstants.MIMETYPE_CMIS_QUERY);
-        Response queryRes = client.executeRequest(postReq, 200);
+        Response queryRes = client.executeRequest(postReq, 201);
         Assert.assertNotNull(queryRes);
         Feed queryFeed = model.parseFeed(new StringReader(queryRes.getContentAsString()),
null);
         Assert.assertNotNull(queryFeed);
@@ -191,7 +191,7 @@
         queryReq = queryReq.replace("${MAXITEMS}", "5");
 
         Request postReq = new PostRequest(queryHREF.toString(), queryReq, CMISConstants.MIMETYPE_CMIS_QUERY);
-        Response queryRes = client.executeRequest(postReq, 200);
+        Response queryRes = client.executeRequest(postReq, 201);
         Assert.assertNotNull(queryRes);
         Feed queryFeed = model.parseFeed(new StringReader(queryRes.getContentAsString()),
null);
         Assert.assertNotNull(queryFeed);
@@ -225,7 +225,7 @@
 
         // issue structured query
         Request postReq = new PostRequest(queryHREF.toString(), queryReq, CMISConstants.MIMETYPE_CMIS_QUERY);
-        Response queryRes = client.executeRequest(postReq, 200);
+        Response queryRes = client.executeRequest(postReq, 201);
         Assert.assertNotNull(queryRes);
         Feed queryFeed = model.parseFeed(new StringReader(queryRes.getContentAsString()),
null);
         Assert.assertNotNull(queryFeed);



Mime
View raw message