Author: [email protected]
Date: Wed Mar 30 11:45:32 2011
New Revision: 926

Log:
AMDATU-283 fix itest by registering for jsp support

Modified:
   
branches/AMDATU-283-dev/integration-tests/src/test/java/org/amdatu/test/integration/tests/HttpServiceTest.java

Modified: 
branches/AMDATU-283-dev/integration-tests/src/test/java/org/amdatu/test/integration/tests/HttpServiceTest.java
==============================================================================
--- 
branches/AMDATU-283-dev/integration-tests/src/test/java/org/amdatu/test/integration/tests/HttpServiceTest.java
      (original)
+++ 
branches/AMDATU-283-dev/integration-tests/src/test/java/org/amdatu/test/integration/tests/HttpServiceTest.java
      Wed Mar 30 11:45:32 2011
@@ -38,7 +38,9 @@
 import org.amdatu.test.integration.base.ConfigProvider;
 import org.amdatu.test.integration.base.IntegrationTestBase;
 import org.amdatu.web.dispatcher.DispatcherService;
+import org.amdatu.web.httpcontext.HttpContextManagerService;
 import org.amdatu.web.httpcontext.ResourceProvider;
+import org.amdatu.web.jsp.JspSupport;
 import org.apache.commons.httpclient.Header;
 import org.apache.commons.httpclient.HttpClient;
 import org.apache.commons.httpclient.HttpMethod;
@@ -59,6 +61,7 @@
 @RunWith(JUnit4TestRunner.class)
 public class HttpServiceTest extends IntegrationTestBase {
     private final static String SERVLET_ALIAS = "/test/servlet";
+    private final static String JSP_ALIAS = SERVLET_ALIAS + "/jsp";
     private final static String TEST_TEXT = "Integration test successfull!";
     private final static String TEST_HEADER_BEFORE = "testFilterBefore";
     private final static String TEST_HEADER_BEFORE_VALUE = "before";
@@ -112,8 +115,9 @@
         // Now we register a test servlet, also whiteboard-style
         m_testServlet = new TestServlet();
         Dictionary<String, String> servletProperties = new Hashtable<String, 
String>();
-        servletProperties.put("alias", SERVLET_ALIAS);
-        servletProperties.put("contextId", SERVLET_ALIAS);
+        servletProperties.put(HttpContextManagerService.CONTEXT_ID_KEY, 
SERVLET_ALIAS);
+        servletProperties.put(DispatcherService.ALIAS_KEY, SERVLET_ALIAS);
+        servletProperties.put(JspSupport.JSP_ALIAS_KEY, JSP_ALIAS);
         Component servletComponent =
             manager
                 .createComponent()
_______________________________________________
Amdatu-commits mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-commits

Reply via email to