tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1144823 - /tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java
Date Sun, 10 Jul 2011 11:02:22 GMT
Author: markt
Date: Sun Jul 10 11:02:22 2011
New Revision: 1144823

URL: http://svn.apache.org/viewvc?rev=1144823&view=rev
Log:
Remove unused code.

Modified:
    tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java

Modified: tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java?rev=1144823&r1=1144822&r2=1144823&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java (original)
+++ tomcat/trunk/test/org/apache/catalina/mbeans/TestRegistration.java Sun Jul 10 11:02:22
2011
@@ -59,7 +59,7 @@ public class TestRegistration extends To
         };
     }
 
-    private String[] optionalMBeanNames(String host, String context) {
+    private String[] optionalMBeanNames(String host) {
         if (isAccessLogEnabled()) {
             return new String[] {
                 "Tomcat:type=Valve,host=" + host + ",name=AccessLogValve",
@@ -141,7 +141,7 @@ public class TestRegistration extends To
         expected.addAll(Arrays.asList(hostMBeanNames("localhost")));
         expected.addAll(Arrays.asList(contextMBeanNames("localhost", contextName)));
         expected.addAll(Arrays.asList(connectorMBeanNames(Integer.toString(getPort()), protocol)));
-        expected.addAll(Arrays.asList(optionalMBeanNames("localhost", contextName)));
+        expected.addAll(Arrays.asList(optionalMBeanNames("localhost")));
 
         // Did we find all expected MBeans?
         ArrayList<String> missing = new ArrayList<String>(expected);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message