org.apache.commons.proxy.invoker
Class TestDuckTypingInvoker

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.invoker.TestDuckTypingInvoker
All Implemented Interfaces:
junit.framework.Test

public class TestDuckTypingInvoker
extends AbstractTestCase


Nested Class Summary
static interface TestDuckTypingInvoker.Duck
           
static interface TestDuckTypingInvoker.Goose
           
static class TestDuckTypingInvoker.LegacyDuck
           
static interface TestDuckTypingInvoker.ParameterizedDuck
           
static interface TestDuckTypingInvoker.SerializableDuck
           
static interface TestDuckTypingInvoker.VoidReturnDuck
           
 
Constructor Summary
TestDuckTypingInvoker()
           
 
Method Summary
 void testExactSignatureMatch()
           
 void testMismatchingParameterType()
           
 void testMismatchingReturnType()
           
 void testNoMatchingMethod()
           
 void testSerialization()
           
 void testTargetHasCompatibleReturnType()
           
 
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
 

Constructor Detail

TestDuckTypingInvoker

public TestDuckTypingInvoker()
Method Detail

testExactSignatureMatch

public void testExactSignatureMatch()

testMismatchingParameterType

public void testMismatchingParameterType()

testMismatchingReturnType

public void testMismatchingReturnType()

testNoMatchingMethod

public void testNoMatchingMethod()

testSerialization

public void testSerialization()

testTargetHasCompatibleReturnType

public void testTargetHasCompatibleReturnType()


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