geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r601047 - in /geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main: java/org/apache/geronimo/test/ webapp/WEB-INF/
Date Tue, 04 Dec 2007 19:24:20 GMT
Author: gawor
Date: Tue Dec  4 11:24:19 2007
New Revision: 601047

URL: http://svn.apache.org/viewvc?rev=601047&view=rev
Log:
test for jndi access in more places

Added:
    geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/SessionListener.java
  (with props)
Modified:
    geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/ContextListener.java
    geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/RequestListener.java
    geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestFilter.java
    geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestServlet.java
    geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/webapp/WEB-INF/web.xml

Modified: geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/ContextListener.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/ContextListener.java?rev=601047&r1=601046&r2=601047&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/ContextListener.java
(original)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/ContextListener.java
Tue Dec  4 11:24:19 2007
@@ -23,7 +23,7 @@
 public class ContextListener implements ServletContextListener {
         
     public void contextDestroyed(ServletContextEvent event) {
-        //TestServlet.testLookup("contextDestroyed");
+        TestServlet.testLookup("contextDestroyed");
     }
 
     public void contextInitialized(ServletContextEvent event) {

Modified: geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/RequestListener.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/RequestListener.java?rev=601047&r1=601046&r2=601047&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/RequestListener.java
(original)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/RequestListener.java
Tue Dec  4 11:24:19 2007
@@ -23,7 +23,7 @@
 public class RequestListener implements ServletRequestListener {
         
     public void requestDestroyed(ServletRequestEvent event) {
-        //TestServlet.testLookup("requestDestroyed");
+        TestServlet.testLookup("requestDestroyed");
     }
 
     public void requestInitialized(ServletRequestEvent event) {

Added: geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/SessionListener.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/SessionListener.java?rev=601047&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/SessionListener.java
(added)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/SessionListener.java
Tue Dec  4 11:24:19 2007
@@ -0,0 +1,34 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.test;
+
+import java.io.IOException;
+import javax.servlet.http.HttpSessionListener;
+import javax.servlet.http.HttpSessionEvent;
+
+public class SessionListener implements HttpSessionListener {
+        
+    public void sessionCreated(HttpSessionEvent se) {
+        TestServlet.testLookup("sessionCreated");
+    }
+
+    public void sessionDestroyed(HttpSessionEvent se) {
+        TestServlet.testLookup("sessionDestroyed");
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/SessionListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestFilter.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestFilter.java?rev=601047&r1=601046&r2=601047&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestFilter.java
(original)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestFilter.java
Tue Dec  4 11:24:19 2007
@@ -28,7 +28,7 @@
 public class TestFilter implements Filter {
         
     public void init(FilterConfig filterConfig) {
-        //TestServlet.testLookup("initFilter");
+        TestServlet.testLookup("filterInit");
     }
 
     public void doFilter(ServletRequest request, ServletResponse response,
@@ -38,7 +38,7 @@
     }
 
     public void destroy() {  
-        //TestServlet.testLookup("destroyFilter");
+        TestServlet.testLookup("filterDestroy");
     }
 
 }

Modified: geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestServlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestServlet.java?rev=601047&r1=601046&r2=601047&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestServlet.java
(original)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/java/org/apache/geronimo/test/TestServlet.java
Tue Dec  4 11:24:19 2007
@@ -23,6 +23,7 @@
 import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.servlet.ServletException;
+import javax.servlet.ServletConfig;
 import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
@@ -47,6 +48,14 @@
     protected void doPost(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
     }         
 
+    public void init(ServletConfig config) throws ServletException {
+        super.init(config);
+        testLookup("servletInit");
+    }
+
+    public void destroy() {
+        testLookup("servletDestroy");
+    }
 
     private Integer lookup(String name, HttpServletRequest request) {
         try {

Modified: geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/webapp/WEB-INF/web.xml?rev=601047&r1=601046&r2=601047&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/webapp/WEB-INF/web.xml
(original)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-web-forward/web-forward-war-2/src/main/webapp/WEB-INF/web.xml
Tue Dec  4 11:24:19 2007
@@ -33,6 +33,10 @@
        <listener-class>org.apache.geronimo.test.ContextListener</listener-class>
    </listener>
 
+   <listener>
+       <listener-class>org.apache.geronimo.test.SessionListener</listener-class>
+   </listener>
+
    <filter>
        <filter-name>TestFilter</filter-name>
        <filter-class>org.apache.geronimo.test.TestFilter</filter-class>



Mime
View raw message