sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1583925 - /sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/ReplicationAgentResourcesIntegrationTest.java
Date Wed, 02 Apr 2014 08:30:28 GMT
Author: tommaso
Date: Wed Apr  2 08:30:28 2014
New Revision: 1583925

URL: http://svn.apache.org/r1583925
Log:
SLING-3480 - adjusted ITs to latest revision of replication.core

Modified:
    sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/ReplicationAgentResourcesIntegrationTest.java

Modified: sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/ReplicationAgentResourcesIntegrationTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/ReplicationAgentResourcesIntegrationTest.java?rev=1583925&r1=1583924&r2=1583925&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/ReplicationAgentResourcesIntegrationTest.java
(original)
+++ sling/trunk/contrib/extensions/replication/it/src/test/java/org/apache/sling/replication/it/ReplicationAgentResourcesIntegrationTest.java
Wed Apr  2 08:30:28 2014
@@ -105,18 +105,19 @@ public class ReplicationAgentResourcesIn
         String agentName = "sample-create-config";
         String newConfigResource = getAgentConfigUrl(agentName);
 
-        assertPostResourceWithParameters(201, newConfigResource, "name", agentName);
+        assertPostResourceWithParameters(201, newConfigResource, "name", agentName, "transportHandler",
"(name=author)");
         assertResourceExists(newConfigResource);
         assertJsonResponseContains(newConfigResource,
                 "sling:resourceType", "replication/config/agent",
-                "name", agentName);
+                "name", agentName,
+                "transportHandler", "(name=author)");
     }
 
     @Test
     public void testAgentConfigurationResourceDelete() throws Exception {
         String agentName = "sample-delete-config";
         String newConfigResource = getAgentConfigUrl(agentName);
-        assertPostResourceWithParameters(201, newConfigResource, "name", agentName);
+        assertPostResourceWithParameters(201, newConfigResource, "name", agentName, "transportHandler",
"(name=author)");
         assertResourceExists(newConfigResource);
         assertPostResourceWithParameters(200, newConfigResource, ":operation", "delete");
         assertResourceDoesNotExist(newConfigResource);
@@ -127,10 +128,11 @@ public class ReplicationAgentResourcesIn
     public void testAgentConfigurationResourceUpdate() throws Exception {
         String agentName = "sample-update-config";
         String newConfigResource = getAgentConfigUrl(agentName);
-        assertPostResourceWithParameters(201, newConfigResource, "name", agentName);
+        assertPostResourceWithParameters(201, newConfigResource, "name", agentName, "transportHandler",
"(name=author)");
         assertResourceExists(newConfigResource);
         assertJsonResponseContains(newConfigResource,
                 "sling:resourceType", "replication/config/agent",
-                "name", agentName);
+                "name", agentName,
+                "transportHandler", "(name=author)");
     }
 }
\ No newline at end of file



Mime
View raw message