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

public class TestDuckTypingInvoker
extends junit.framework.TestCase


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 testTargetHasCompatibleReturnType()
           
 
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

TestDuckTypingInvoker

public TestDuckTypingInvoker()
Method Detail

testExactSignatureMatch

public void testExactSignatureMatch()

testNoMatchingMethod

public void testNoMatchingMethod()

testMismatchingParameterType

public void testMismatchingParameterType()

testTargetHasCompatibleReturnType

public void testTargetHasCompatibleReturnType()

testMismatchingReturnType

public void testMismatchingReturnType()


Copyright © 2005-2010 Apache Software Foundation. All Rights Reserved.