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  Changes    Path
  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 -0000       1.4
  +++ JmxUnitTestCase.java      12 Mar 2002 11:04:47 -0000      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

Reply via email to