test.implementation.util
Class MBeanProxyTEST

java.lang.Object
  extended byTestCase
      extended bytest.implementation.util.MBeanProxyTEST

public class MBeanProxyTEST
extends TestCase

Tests for mbean proxy

See Also:
Serialized Form

Constructor Summary
MBeanProxyTEST(java.lang.String s)
           
 
Method Summary
 void testArbitraryInterfaceWithProxy()
           
 void testAttributeNotFoundOnDeTypedProxy()
           
 void testAttributeNotFoundOnTypedProxy()
           
 void testContextAccess()
           
 void testContextAccessToMBeanServer()
           
 void testCreateWithAgentID()
           
 void testCreateWithServer()
           
 void testCustomExceptionHandler()
          This test shows how to override the default exception handling for proxy invocations.
 void testGetWithAgentID()
           
 void testGetWithServer()
           
 void testInheritanceInProxyAttribute()
           
 void testInheritanceInProxyReturnType()
           
 void testInheritanceInTypedProxyArgs()
           
 void testObjectEqualsOnProxy()
           
 void testObjectEqualsOverride()
           
 void testObjectHashCodeOnProxy()
           
 void testObjectHashCodeOverride()
           
 void testObjectToStringOnProxy()
           
 void testObjectToStringOverride()
           
 void testProxyInvocationBetweenServers()
           
 void testProxyInvocations()
           
 void testProxyInvocationWithConflictingMBeanAndContextMethods()
           
 void testSimultaneousTypedAndDetypedInvocations()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanProxyTEST

public MBeanProxyTEST(java.lang.String s)
Method Detail

testGetWithServer

public void testGetWithServer()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testGetWithAgentID

public void testGetWithAgentID()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testCreateWithServer

public void testCreateWithServer()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testCreateWithAgentID

public void testCreateWithAgentID()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testProxyInvocations

public void testProxyInvocations()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testProxyInvocationWithConflictingMBeanAndContextMethods

public void testProxyInvocationWithConflictingMBeanAndContextMethods()
                                                              throws java.lang.Exception
Throws:
java.lang.Exception

testContextAccess

public void testContextAccess()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testProxyInvocationBetweenServers

public void testProxyInvocationBetweenServers()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testSimultaneousTypedAndDetypedInvocations

public void testSimultaneousTypedAndDetypedInvocations()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testContextAccessToMBeanServer

public void testContextAccessToMBeanServer()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testArbitraryInterfaceWithProxy

public void testArbitraryInterfaceWithProxy()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testCustomExceptionHandler

public void testCustomExceptionHandler()
                                throws java.lang.Exception
This test shows how to override the default exception handling for proxy invocations. The default handling for exceptions that are not declared as part of the proxy typed interface (such as InstanceNotFound or AttributeNotFound exceptions) are rethrown as unchecked RuntimeProxyExceptions. See org.jboss.mx.proxy.DefaultExceptionHandler for details. This behavior can be changed at runtime through the proxy context interface setExceptionHandler() method.

Throws:
java.lang.Exception

testObjectToStringOnProxy

public void testObjectToStringOnProxy()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testObjectToStringOverride

public void testObjectToStringOverride()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testObjectHashCodeOnProxy

public void testObjectHashCodeOnProxy()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testObjectHashCodeOverride

public void testObjectHashCodeOverride()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testObjectEqualsOnProxy

public void testObjectEqualsOnProxy()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testObjectEqualsOverride

public void testObjectEqualsOverride()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testAttributeNotFoundOnTypedProxy

public void testAttributeNotFoundOnTypedProxy()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testAttributeNotFoundOnDeTypedProxy

public void testAttributeNotFoundOnDeTypedProxy()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testInheritanceInTypedProxyArgs

public void testInheritanceInTypedProxyArgs()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testInheritanceInProxyAttribute

public void testInheritanceInProxyAttribute()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testInheritanceInProxyReturnType

public void testInheritanceInProxyReturnType()
                                      throws java.lang.Exception
Throws:
java.lang.Exception