You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by km...@apache.org on 2016/12/23 21:10:10 UTC

[17/25] geode git commit: GEODE-1943: Minor modification to test

GEODE-1943: Minor modification to test


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/a9031bfa
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/a9031bfa
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/a9031bfa

Branch: refs/heads/feature/GEODE-2231
Commit: a9031bfa9343b66d0713229829e6dc400592c118
Parents: a67e496
Author: Jason Huynh <hu...@gmail.com>
Authored: Mon Dec 19 14:16:59 2016 -0800
Committer: Karen Miller <km...@pivotal.io>
Committed: Fri Dec 23 13:09:28 2016 -0800

----------------------------------------------------------------------
 .../SessionReplicationIntegrationJUnitTest.java     | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/a9031bfa/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/internal/filter/SessionReplicationIntegrationJUnitTest.java
----------------------------------------------------------------------
diff --git a/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/internal/filter/SessionReplicationIntegrationJUnitTest.java b/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/internal/filter/SessionReplicationIntegrationJUnitTest.java
index 50bc0ad..3bd517c 100644
--- a/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/internal/filter/SessionReplicationIntegrationJUnitTest.java
+++ b/extensions/geode-modules-session/src/test/java/org/apache/geode/modules/session/internal/filter/SessionReplicationIntegrationJUnitTest.java
@@ -844,20 +844,16 @@ public class SessionReplicationIntegrationJUnitTest {
     };
 
     tester.setAttribute("callback_1", c_1);
-
     servletHolder.setInitParameter("test.callback", "callback_1");
-
+    String url = tester.createConnector(true);
     tester.start();
-    // ContextManager.getInstance().putContext(
-    // servletHolder.getServlet().getServletConfig().getServletContext());
 
-    request.setMethod("GET");
-    request.setURI("/test/hello");
-    request.setHeader("Host", "tester");
-    request.setVersion("HTTP/1.0");
-    response = HttpTester.parseResponse(tester.getResponses(request.generate()));
+    WebConversation wc = new WebConversation();
+    WebRequest req = new GetMethodWebRequest(url + "/test/hello");
+    req.setHeaderField("Host", "tester");
 
-    assertEquals("OK", response.getContent());
+    final WebResponse webResponse = wc.getResponse(req);
+    assertEquals("OK", webResponse.getResponseMessage());
   }
 
   /**