tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1488486 - in /tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless: StatelessInvocationStatsTest.java StatelessPoolStatsTest.java
Date Sat, 01 Jun 2013 08:31:46 GMT
Author: rmannibucau
Date: Sat Jun  1 08:31:46 2013
New Revision: 1488486

URL: http://svn.apache.org/r1488486
Log:
null is no more accepted as app name, using <empty> to avoid issue with JMX GUIs

Modified:
    tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInvocationStatsTest.java
    tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java

Modified: tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInvocationStatsTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInvocationStatsTest.java?rev=1488486&r1=1488485&r2=1488486&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInvocationStatsTest.java
(original)
+++ tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessInvocationStatsTest.java
Sat Jun  1 08:31:46 2013
@@ -157,7 +157,7 @@ public class StatelessInvocationStatsTes
         bean.blue();
 
         final MBeanServer server = LocalMBeanServer.get();
-        final ObjectName invocationsName = new ObjectName("openejb.management:J2EEServer=openejb,J2EEApplication=null,EJBModule=StatsModule,StatelessSessionBean=CounterBean,j2eeType=Invocations,name=CounterBean");
+        final ObjectName invocationsName = new ObjectName("openejb.management:J2EEServer=openejb,J2EEApplication=<empty>,EJBModule=StatsModule,StatelessSessionBean=CounterBean,j2eeType=Invocations,name=CounterBean");
 
         // Grab the mbeanInfo and check the expected attributes exist and have the correct
return types and parameters
 
@@ -312,7 +312,7 @@ public class StatelessInvocationStatsTes
         bean.waitSecs();
 
         final MBeanServer server = ManagementFactory.getPlatformMBeanServer();
-        final ObjectName invocationsName = new ObjectName("openejb.management:J2EEServer=openejb,J2EEApplication=null,EJBModule=StatsInvocModule,StatelessSessionBean=CounterBean,j2eeType=Invocations,name=CounterBean");
+        final ObjectName invocationsName = new ObjectName("openejb.management:J2EEServer=openejb,J2EEApplication=<empty>,EJBModule=StatsInvocModule,StatelessSessionBean=CounterBean,j2eeType=Invocations,name=CounterBean");
 
         // Grab the mbeanInfo and check the expected attributes exist and have the correct
return types and parameters        
         final MBeanInfo invocationsMBeanInfo = server.getMBeanInfo(invocationsName);

Modified: tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java?rev=1488486&r1=1488485&r2=1488486&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
(original)
+++ tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/core/stateless/StatelessPoolStatsTest.java
Sat Jun  1 08:31:46 2013
@@ -566,7 +566,7 @@ public class StatelessPoolStatsTest exte
     }
 
     private CounterBean deploy(final String moduleId, final Properties properties) throws
Exception {
-        objectName = new ObjectName("openejb.management:J2EEServer=openejb,J2EEApplication=null,EJBModule="
+ moduleId + ",StatelessSessionBean=CounterBean,j2eeType=Pool,name=CounterBean");
+        objectName = new ObjectName("openejb.management:J2EEServer=openejb,J2EEApplication=<empty>,EJBModule="
+ moduleId + ",StatelessSessionBean=CounterBean,j2eeType=Pool,name=CounterBean");
 
         System.setProperty(javax.naming.Context.INITIAL_CONTEXT_FACTORY, org.apache.openejb.core.LocalInitialContextFactory.class.getName());
 
@@ -687,4 +687,4 @@ public class StatelessPoolStatsTest exte
     }
 
 
-}
\ No newline at end of file
+}



Mime
View raw message