[JBoss-dev] CVS update: contrib/jboss.net/testsuite/src/main/org/jboss/test/net/jmx JmxUnitTestCase.java

2002-03-12 Thread Dr. Christoph Georg Jung

  User: cgjung  
  Date: 02/03/12 03:04:47

  Modified:jboss.net/testsuite/src/main/org/jboss/test/net/jmx
JmxUnitTestCase.java
  Log:
  Axis Beta RC1 is here. Needs no more to be patched for integrating with the
  jboss classloading architecture. Lots of interna have changed, though.
  
  Adapted the deployment descriptors to support WSDD now.
  
  Revision  ChangesPath
  1.5   +18 -17
contrib/jboss.net/testsuite/src/main/org/jboss/test/net/jmx/JmxUnitTestCase.java
  
  Index: JmxUnitTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/contrib/jboss.net/testsuite/src/main/org/jboss/test/net/jmx/JmxUnitTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JmxUnitTestCase.java  8 Mar 2002 17:24:34 -   1.4
  +++ JmxUnitTestCase.java  12 Mar 2002 11:04:47 -  1.5
  @@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*/
   
  -// $Id: JmxUnitTestCase.java,v 1.4 2002/03/08 17:24:34 cgjung Exp $
  +// $Id: JmxUnitTestCase.java,v 1.5 2002/03/12 11:04:47 cgjung Exp $
   
   package org.jboss.test.net.jmx;
   
  @@ -27,11 +27,13 @@
* Tests remote accessibility of JMX services
* @created 11. Oktober 2001
* @author a href=mailto:[EMAIL PROTECTED];Christoph G. Jung/a
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
*/
   
   public class JmxUnitTestCase extends AxisTestCase {
   
  + protected String JMX_END_POINT=END_POINT+/RemoteAdaptor;
  + 
// static that holds the configured Axis jmx name
protected static String AXIS_JMX_NAME=jboss.net:service=Axis;
   
  @@ -43,34 +45,33 @@
  
  /** tests a very (untyped) basic call through the normal invocation handler */
  public void testBasic() throws Exception {
  -AxisInvocationHandler handler=createAxisInvocationHandler(new 
URL(END_POINT));
  -assertEquals(Testing basic invocation,
  -handler.invoke(RemoteAdaptor,getDefaultDomain,new Object[0]),
  -jboss);
  -assertEquals(Testing complex invocation,
  +AxisInvocationHandler handler=createAxisInvocationHandler(new 
URL(JMX_END_POINT));
  +assertEquals(Testing basic invocation,jboss,
  +handler.invoke(RemoteAdaptor,getDefaultDomain,new Object[0]));
  +assertEquals(Testing complex invocation,Boolean.TRUE,
   handler.invoke(RemoteAdaptor,isRegistered,new Object[] {new String[] 
{javax.management.ObjectName}, 
  -new ObjectName(AXIS_JMX_NAME)}),
  -Boolean.TRUE);
  +new ObjectName(AXIS_JMX_NAME)})
  +);
  }
  
  /** tests a very (untyped) basic call through the mbean invocation handler */
  public void testMBeanHandler() throws Exception {
   MBeanInvocationHandler handler=
  -createMBeanInvocationHandler(new URL(END_POINT));
  -assertEquals(Testing mbean specific invocation,
  +createMBeanInvocationHandler(new URL(JMX_END_POINT));
  +assertEquals(Testing mbean specific invocation,jboss,
   handler.invoke(RemoteAdaptor,getDefaultDomain,
  -new Object[0],new Class[0]),jboss);
  -assertEquals(Testing custom serializer,handler.
  +new Object[0],new Class[0]));
  +assertEquals(Testing custom serializer,Boolean.TRUE,handler.
   invoke(RemoteAdaptor,isRegistered,
   new Object[] {new ObjectName(AXIS_JMX_NAME)},
  -new Class[] {ObjectName.class}),Boolean.TRUE);
  +new Class[] {ObjectName.class}));
  }
  
  /** tests the (typed) adaptor access */
  public void testAdaptor() throws Exception {
  -RemoteAdaptor handler=createRemoteAdaptor(new URL(END_POINT));
  -assertEquals(Testing handler,
  -handler.getDefaultDomain(),jboss);
  +RemoteAdaptor handler=createRemoteAdaptor(new URL(JMX_END_POINT));
  +assertEquals(Testing handler,jboss,
  +handler.getDefaultDomain());
   assertTrue(Testing handler with custom serializer,handler.
   isRegistered(new ObjectName(AXIS_JMX_NAME)));
  }
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: contrib/jboss.net/testsuite/src/main/org/jboss/test/net/jmx JmxUnitTestCase.java

2002-03-08 Thread Dr. Christoph Georg Jung

  User: cgjung  
  Date: 02/03/08 09:24:34

  Modified:jboss.net/testsuite/src/main/org/jboss/test/net/jmx
JmxUnitTestCase.java
  Log:
  when you change config, change the depending unit tests too, stupid!
  time4weekend.
  
  Revision  ChangesPath
  1.4   +9 -6  
contrib/jboss.net/testsuite/src/main/org/jboss/test/net/jmx/JmxUnitTestCase.java
  
  Index: JmxUnitTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/contrib/jboss.net/testsuite/src/main/org/jboss/test/net/jmx/JmxUnitTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JmxUnitTestCase.java  3 Jan 2002 04:00:55 -   1.3
  +++ JmxUnitTestCase.java  8 Mar 2002 17:24:34 -   1.4
  @@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*/
   
  -// $Id: JmxUnitTestCase.java,v 1.3 2002/01/03 04:00:55 user57 Exp $
  +// $Id: JmxUnitTestCase.java,v 1.4 2002/03/08 17:24:34 cgjung Exp $
   
   package org.jboss.test.net.jmx;
   
  @@ -27,11 +27,14 @@
* Tests remote accessibility of JMX services
* @created 11. Oktober 2001
* @author a href=mailto:[EMAIL PROTECTED];Christoph G. Jung/a
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
*/
   
   public class JmxUnitTestCase extends AxisTestCase {
  -   
  +
  + // static that holds the configured Axis jmx name
  + protected static String AXIS_JMX_NAME=jboss.net:service=Axis;
  +
   // Constructors --
   public JmxUnitTestCase(String name)
  {
  @@ -46,7 +49,7 @@
   jboss);
   assertEquals(Testing complex invocation,
   handler.invoke(RemoteAdaptor,isRegistered,new Object[] {new String[] 
{javax.management.ObjectName}, 
  -new ObjectName(jboss:service=Axis)}),
  +new ObjectName(AXIS_JMX_NAME)}),
   Boolean.TRUE);
  }
  
  @@ -59,7 +62,7 @@
   new Object[0],new Class[0]),jboss);
   assertEquals(Testing custom serializer,handler.
   invoke(RemoteAdaptor,isRegistered,
  -new Object[] {new ObjectName(jboss:service=Axis)},
  +new Object[] {new ObjectName(AXIS_JMX_NAME)},
   new Class[] {ObjectName.class}),Boolean.TRUE);
  }
  
  @@ -69,7 +72,7 @@
   assertEquals(Testing handler,
   handler.getDefaultDomain(),jboss);
   assertTrue(Testing handler with custom serializer,handler.
  -isRegistered(new ObjectName(jboss:service=Axis)));
  +isRegistered(new ObjectName(AXIS_JMX_NAME)));
  }
 
  public static Test suite() throws Exception
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



[JBoss-dev] CVS update: contrib/jboss.net/testsuite/src/main/org/jboss/test/net/jmx JmxUnitTestCase.java

2002-01-02 Thread Jason Dillon

  User: user57  
  Date: 02/01/02 20:00:55

  Modified:jboss.net/testsuite/src/main/org/jboss/test/net/jmx
JmxUnitTestCase.java
  Log:
   o migrated all components to a new JMX domain name model.  jboss.system
 is now where to core/spine components live.  moved all components that
 were in JBOSS-SYSTEM that did not move into a jboss.* domain into
 jboss (where the server is now registered).  The point was to limit the
 members of jboss.system to core bits only.
   o Created org.jboss.system.Server, which does the work of initialization
 that org.jboss.Main used to do.  Main now only parses the command line,
 sets up basic legecy properties and creates a Server instance.
   o Moved functionality of Shutdown (component not cl tool) into Server (
 which is bound as jboss.system:service=Server)
   o Moved more Runtime access from Info into Server.  Exposed memory info
 as attributes.
   o Logging a WARN everywhere that uses System.getProperty(jboss.system.home)
 as that should go away soon/eventually.
   o Initialized the invokerMap in the harmi impl to avoid NPE
   o Made getopt.jar a member of the lib/* dir instead of adding it to the
 run.jar and shutdown.jars each time.
   o Minor cosmetic changes along the way.
  
  Revision  ChangesPath
  1.3   +8 -8  
contrib/jboss.net/testsuite/src/main/org/jboss/test/net/jmx/JmxUnitTestCase.java
  
  Index: JmxUnitTestCase.java
  ===
  RCS file: 
/cvsroot/jboss/contrib/jboss.net/testsuite/src/main/org/jboss/test/net/jmx/JmxUnitTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JmxUnitTestCase.java  2001/10/16 15:53:03 1.2
  +++ JmxUnitTestCase.java  2002/01/03 04:00:55 1.3
  @@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*/
   
  -// $Id: JmxUnitTestCase.java,v 1.2 2001/10/16 15:53:03 cgjung Exp $
  +// $Id: JmxUnitTestCase.java,v 1.3 2002/01/03 04:00:55 user57 Exp $
   
   package org.jboss.test.net.jmx;
   
  @@ -27,7 +27,7 @@
* Tests remote accessibility of JMX services
* @created 11. Oktober 2001
* @author a href=mailto:[EMAIL PROTECTED];Christoph G. Jung/a
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
*/
   
   public class JmxUnitTestCase extends AxisTestCase {
  @@ -43,10 +43,10 @@
   AxisInvocationHandler handler=createAxisInvocationHandler(new 
URL(END_POINT));
   assertEquals(Testing basic invocation,
   handler.invoke(RemoteAdaptor,getDefaultDomain,new Object[0]),
  -JBOSS-SYSTEM);
  +jboss);
   assertEquals(Testing complex invocation,
   handler.invoke(RemoteAdaptor,isRegistered,new Object[] {new String[] 
{javax.management.ObjectName}, 
  -new ObjectName(JBOSS-SYSTEM:service=Axis)}),
  +new ObjectName(jboss:service=Axis)}),
   Boolean.TRUE);
  }
  
  @@ -56,10 +56,10 @@
   createMBeanInvocationHandler(new URL(END_POINT));
   assertEquals(Testing mbean specific invocation,
   handler.invoke(RemoteAdaptor,getDefaultDomain,
  -new Object[0],new Class[0]),JBOSS-SYSTEM);
  +new Object[0],new Class[0]),jboss);
   assertEquals(Testing custom serializer,handler.
   invoke(RemoteAdaptor,isRegistered,
  -new Object[] {new ObjectName(JBOSS-SYSTEM:service=Axis)},
  +new Object[] {new ObjectName(jboss:service=Axis)},
   new Class[] {ObjectName.class}),Boolean.TRUE);
  }
  
  @@ -67,9 +67,9 @@
  public void testAdaptor() throws Exception {
   RemoteAdaptor handler=createRemoteAdaptor(new URL(END_POINT));
   assertEquals(Testing handler,
  -handler.getDefaultDomain(),JBOSS-SYSTEM);
  +handler.getDefaultDomain(),jboss);
   assertTrue(Testing handler with custom serializer,handler.
  -isRegistered(new ObjectName(JBOSS-SYSTEM:service=Axis)));
  +isRegistered(new ObjectName(jboss:service=Axis)));
  }
 
  public static Test suite() throws Exception
  
  
  

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development