org.apache.commons.proxy.factory
Class AbstractProxyFactoryTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.proxy.util.AbstractTestCase
              extended by org.apache.commons.proxy.factory.AbstractProxyFactoryTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractSubclassingProxyFactoryTestCase, TestProxyFactory

public abstract class AbstractProxyFactoryTestCase
extends AbstractTestCase

Since:
1.0
Author:
James Carman

Nested Class Summary
protected static class AbstractProxyFactoryTestCase.InterceptorTester
           
protected static class AbstractProxyFactoryTestCase.InvokerTester
           
protected static class AbstractProxyFactoryTestCase.NoOpMethodInterceptor
           
 
Field Summary
protected  org.apache.commons.proxy.ProxyFactory factory
           
 
Constructor Summary
protected AbstractProxyFactoryTestCase(org.apache.commons.proxy.ProxyFactory factory)
           
 
Method Summary
 void testBooleanInterceptorParameter()
           
 void testCanProxy()
           
 void testChangingArguments()
           
 void testCreateDelegatingProxy()
           
 void testCreateInterceptorProxy()
           
 void testDelegatingProxyClassCaching()
           
 void testDelegatingProxyInterfaceOrder()
           
 void testDelegatingProxySerializable()
           
 void testDelegatorEquals()
           
 void testDelegatorHashCode()
           
 void testInterceptingProxyClassCaching()
           
 void testInterceptingProxySerializable()
           
 void testInterceptorEquals()
           
 void testInterceptorHashCode()
           
 void testInterceptorProxyWithCheckedException()
           
 void testInterceptorProxyWithUncheckedException()
           
 void testInterfaceHierarchies()
           
 void testInvokerEquals()
           
 void testInvokerHashCode()
           
 void testInvokerProxy()
           
 void testInvokerProxyClassCaching()
           
 void testInvokerProxySerializable()
           
 void testMethodInvocationClassCaching()
           
 void testMethodInvocationDuplicateMethods()
           
 void testMethodInvocationImplementation()
           
 void testPrimitiveParameter()
           
 void testProxyWithCheckedException()
           
 void testProxyWithUncheckedException()
           
 void testWithNonAccessibleTargetType()
           
 
Methods inherited from class org.apache.commons.proxy.util.AbstractTestCase
assertSerializable
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

factory

protected final org.apache.commons.proxy.ProxyFactory factory
Constructor Detail

AbstractProxyFactoryTestCase

protected AbstractProxyFactoryTestCase(org.apache.commons.proxy.ProxyFactory factory)
Method Detail

testInterceptorHashCode

public void testInterceptorHashCode()

testInvokerHashCode

public void testInvokerHashCode()
                         throws Exception
Throws:
Exception

testDelegatorHashCode

public void testDelegatorHashCode()
                           throws Exception
Throws:
Exception

testInterceptorEquals

public void testInterceptorEquals()

testInvokerEquals

public void testInvokerEquals()
                       throws Exception
Throws:
Exception

testDelegatorEquals

public void testDelegatorEquals()
                         throws Exception
Throws:
Exception

testBooleanInterceptorParameter

public void testBooleanInterceptorParameter()

testCanProxy

public void testCanProxy()

testChangingArguments

public void testChangingArguments()

testCreateDelegatingProxy

public void testCreateDelegatingProxy()

testCreateInterceptorProxy

public void testCreateInterceptorProxy()

testDelegatingProxyClassCaching

public void testDelegatingProxyClassCaching()
                                     throws Exception
Throws:
Exception

testDelegatingProxyInterfaceOrder

public void testDelegatingProxyInterfaceOrder()

testDelegatingProxySerializable

public void testDelegatingProxySerializable()
                                     throws Exception
Throws:
Exception

testInterceptingProxyClassCaching

public void testInterceptingProxyClassCaching()
                                       throws Exception
Throws:
Exception

testInterceptingProxySerializable

public void testInterceptingProxySerializable()
                                       throws Exception
Throws:
Exception

testInterceptorProxyWithCheckedException

public void testInterceptorProxyWithCheckedException()
                                              throws Exception
Throws:
Exception

testInterceptorProxyWithUncheckedException

public void testInterceptorProxyWithUncheckedException()
                                                throws Exception
Throws:
Exception

testInterfaceHierarchies

public void testInterfaceHierarchies()

testInvokerProxy

public void testInvokerProxy()
                      throws Exception
Throws:
Exception

testInvokerProxyClassCaching

public void testInvokerProxyClassCaching()
                                  throws Exception
Throws:
Exception

testInvokerProxySerializable

public void testInvokerProxySerializable()
                                  throws Exception
Throws:
Exception

testMethodInvocationClassCaching

public void testMethodInvocationClassCaching()
                                      throws Exception
Throws:
Exception

testMethodInvocationDuplicateMethods

public void testMethodInvocationDuplicateMethods()
                                          throws Exception
Throws:
Exception

testMethodInvocationImplementation

public void testMethodInvocationImplementation()
                                        throws Exception
Throws:
Exception

testPrimitiveParameter

public void testPrimitiveParameter()

testProxyWithCheckedException

public void testProxyWithCheckedException()
                                   throws Exception
Throws:
Exception

testProxyWithUncheckedException

public void testProxyWithUncheckedException()
                                     throws Exception
Throws:
Exception

testWithNonAccessibleTargetType

public void testWithNonAccessibleTargetType()


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.