No longer need ServerLifecycleListener
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 2 May 2010 18:10:12 +0000 (18:10 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 2 May 2010 18:10:12 +0000 (18:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@940283 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/mbeans/RegistrationTest.java

index 846c8c3..39dc38f 100644 (file)
@@ -45,8 +45,6 @@ public class RegistrationTest extends TomcatBaseTest {
         assertEquals("Remaining: " + onames, 0, onames.size());
 
         final Tomcat tomcat = getTomcatInstance();
-        // need to register a ServerLifecycleListener otherwise only a few MBeans are registered 
-        tomcat.getServer().addLifecycleListener(new ServerLifecycleListener());
         final File contextDir = new File("output/webappFoo");
         contextDir.mkdir();
         tomcat.addContext("/foo", contextDir.getAbsolutePath());