You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2019/08/02 09:05:15 UTC
[tomcat] branch master updated: Simplify test. Correct comments.
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 22301d2 Simplify test. Correct comments.
22301d2 is described below
commit 22301d2a82dfe4acd872e56c27270ed06991f4e6
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Aug 2 10:03:16 2019 +0100
Simplify test. Correct comments.
---
test/org/apache/catalina/startup/TestListener.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/test/org/apache/catalina/startup/TestListener.java b/test/org/apache/catalina/startup/TestListener.java
index 0d90d8e..c1c4d4f 100644
--- a/test/org/apache/catalina/startup/TestListener.java
+++ b/test/org/apache/catalina/startup/TestListener.java
@@ -40,8 +40,8 @@ public class TestListener extends TomcatBaseTest {
public void testServletContainerInitializer() throws Exception {
Tomcat tomcat = getTomcatInstance();
- Context context = tomcat.addContext("",
- System.getProperty("java.io.tmpdir"));
+ // No file system docBase required
+ Context context = tomcat.addContext("", null);
context.addServletContainerInitializer(new SCI(), null);
tomcat.start();
@@ -57,15 +57,15 @@ public class TestListener extends TomcatBaseTest {
public void testServletContextListener() throws Exception {
Tomcat tomcat = getTomcatInstance();
- Context context = tomcat.addContext("",
- System.getProperty("java.io.tmpdir"));
+ // No file system docBase required
+ Context context = tomcat.addContext("", null);
// SCL2 pretends to be in web.xml, and tries to install a
- // ServletContextInitializer.
+ // ServletContainerInitializer.
context.addApplicationListener(SCL2.class.getName());
tomcat.start();
- //check that the ServletContextInitializer wasn't initialized.
+ //check that the ServletContainerInitializer wasn't initialized.
Assert.assertFalse(SCL3.initialized);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org