geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jasonhu...@apache.org
Subject geode git commit: GEODE-1943: Minor modification to test
Date Wed, 21 Dec 2016 20:35:24 GMT
Repository: geode
Updated Branches:
  refs/heads/develop 2fb15ae7c -> 225066b48


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/225066b4
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/225066b4
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/225066b4

Branch: refs/heads/develop
Commit: 225066b48c9fa0292df5454d3c3a32db113e6613
Parents: 2fb15ae
Author: Jason Huynh <huynhja@gmail.com>
Authored: Mon Dec 19 14:16:59 2016 -0800
Committer: Jason Huynh <huynhja@gmail.com>
Committed: Wed Dec 21 11:28:27 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/geode/blob/225066b4/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());
   }
 
   /**


Mime
View raw message