jvanzyl 02/01/17 08:33:04
Added: src/rttest/cactus cactus.properties log_client.properties
web.xml
Log:
- cactus configuration for testing the turbine core against
tomcat4
Revision Changes Path
1.1 jakarta-turbine-3/src/rttest/cactus/cactus.properties
Index: cactus.properties
===================================================================
# Configuration file for Cactus.
# Each project using Cactus need to have such a file put in the client side
# CLASSPATH (Meaning the directory containgin this file should be in the client
# side CLASSPATH, not the file itself of course ... :) )
# Defines the URLs that will be used by Cactus to call it's redirectors.
# You need to specify in these URLs the webapp context that you use for your
# application. In the example below, the context is "test".
# Servlet Redirector. Used by ServletTestCase test cases.
cactus.servletRedirectorURL = http://localhost:@test.port@/test/ServletRedirector/
# JSP Redirector. Used by JspTestCase test cases.
cactus.jspRedirectorURL = http://localhost:@test.port@/test/JspRedirector/
# Filter Redirector. Used by FilterTestCase test cases.
# NOTE: Some servlet 2.3 containers need to map the filter to a valid
# resource (Orion 1.5.2 for example). Others, like Tomcat, are happy
# with just any mapping.
#
# For example, the following would work with Tomcat :
# cactus.filterRedirectorURL = http://localhost:@test.port@/test/FilterRedirector
cactus.filterRedirectorURL =
http://localhost:@test.port@/test/test/filterRedirector.jsp
1.1 jakarta-turbine-3/src/rttest/cactus/log_client.properties
Index: log_client.properties
===================================================================
# Properties for configuring Log4j
# This is the configuring for logging on the JUnit side (i.e. the client side)
log4j.appender.cactus = org.apache.log4j.FileAppender
log4j.appender.cactus.File = cactus_client.log
log4j.appender.cactus.Append = false
log4j.appender.cactus.layout = org.apache.log4j.PatternLayout
log4j.appender.cactus.layout.ConversionPattern = %r [%t] %-5p %c{2} %x - %m %n
log4j.category.org.apache.cactus = DEBUG, cactus
1.1 jakarta-turbine-3/src/rttest/cactus/web.xml
Index: web.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<filter>
<filter-name>FilterRedirector</filter-name>
<filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>
</filter>
<filter-mapping>
<filter-name>FilterRedirector</filter-name>
<!-- Some servlet 2.3 containers need to map the filter to a valid
resource (Orion 1.5.2 for example). Others, like Tomcat,
are happy with just any mapping.
For example, the following would work with Tomcat :
<url-pattern>/FilterRedirector/</url-pattern> -->
<url-pattern>/test/filterRedirector.jsp</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>ServletRedirector</servlet-name>
<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
<init-param>
<param-name>param1</param-name>
<param-value>value1 used for testing</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>JspRedirector</servlet-name>
<jsp-file>/test/jspRedirector.jsp</jsp-file>
<init-param>
<param-name>param1</param-name>
<param-value>value1 used for testing</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ServletRedirector</servlet-name>
<url-pattern>/ServletRedirector/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>JspRedirector</servlet-name>
<url-pattern>/JspRedirector/</url-pattern>
</servlet-mapping>
</web-app>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>