test.implementation.util
Class MBeanProxyTEST

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.implementation.util.MBeanProxyTEST
All Implemented Interfaces:
junit.framework.Test

public class MBeanProxyTEST
extends junit.framework.TestCase

Tests for mbean proxy

Version:
$Revision: 81022 $
Author:
Juha Lindfors.

Constructor Summary
MBeanProxyTEST(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 junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MBeanProxyTEST

public MBeanProxyTEST(String s)
Method Detail

testGetWithServer

public void testGetWithServer()
                       throws Exception
Throws:
Exception

testGetWithAgentID

public void testGetWithAgentID()
                        throws Exception
Throws:
Exception

testCreateWithServer

public void testCreateWithServer()
                          throws Exception
Throws:
Exception

testCreateWithAgentID

public void testCreateWithAgentID()
                           throws Exception
Throws:
Exception

testProxyInvocations

public void testProxyInvocations()
                          throws Exception
Throws:
Exception

testProxyInvocationWithConflictingMBeanAndContextMethods

public void testProxyInvocationWithConflictingMBeanAndContextMethods()
                                                              throws Exception
Throws:
Exception

testContextAccess

public void testContextAccess()
                       throws Exception
Throws:
Exception

testProxyInvocationBetweenServers

public void testProxyInvocationBetweenServers()
                                       throws Exception
Throws:
Exception

testSimultaneousTypedAndDetypedInvocations

public void testSimultaneousTypedAndDetypedInvocations()
                                                throws Exception
Throws:
Exception

testContextAccessToMBeanServer

public void testContextAccessToMBeanServer()
                                    throws Exception
Throws:
Exception

testArbitraryInterfaceWithProxy

public void testArbitraryInterfaceWithProxy()
                                     throws Exception
Throws:
Exception

testCustomExceptionHandler

public void testCustomExceptionHandler()
                                throws 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:
Exception

testObjectToStringOnProxy

public void testObjectToStringOnProxy()
                               throws Exception
Throws:
Exception

testObjectToStringOverride

public void testObjectToStringOverride()
                                throws Exception
Throws:
Exception

testObjectHashCodeOnProxy

public void testObjectHashCodeOnProxy()
                               throws Exception
Throws:
Exception

testObjectHashCodeOverride

public void testObjectHashCodeOverride()
                                throws Exception
Throws:
Exception

testObjectEqualsOnProxy

public void testObjectEqualsOnProxy()
                             throws Exception
Throws:
Exception

testObjectEqualsOverride

public void testObjectEqualsOverride()
                              throws Exception
Throws:
Exception

testAttributeNotFoundOnTypedProxy

public void testAttributeNotFoundOnTypedProxy()
                                       throws Exception
Throws:
Exception

testAttributeNotFoundOnDeTypedProxy

public void testAttributeNotFoundOnDeTypedProxy()
                                         throws Exception
Throws:
Exception

testInheritanceInTypedProxyArgs

public void testInheritanceInTypedProxyArgs()
                                     throws Exception
Throws:
Exception

testInheritanceInProxyAttribute

public void testInheritanceInProxyAttribute()
                                     throws Exception
Throws:
Exception

testInheritanceInProxyReturnType

public void testInheritanceInProxyReturnType()
                                      throws Exception
Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.