org.springframework.batch.item.adapter
Class AbstractDelegatorTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.item.adapter.AbstractDelegatorTests

public class AbstractDelegatorTests
extends TestCase

Tests for AbstractMethodInvokingDelegator

Author:
Robert Kasanicky

Constructor Summary
AbstractDelegatorTests()
           
 
Method Summary
protected  void setUp()
           
 void testDelegation()
          Regular use - calling methods directly and via delegator leads to same results
 void testDelegationWithArgument()
          Regular use - calling methods directly and via delegator leads to same results
 void testDelegationWithMultipleArguments()
          Regular use - calling methods directly and via delegator leads to same results
 void testIncorrectArgumentCount()
          Exception scenario - target method is called with incorrect number of arguments.
 void testIncorrectNumberOfStaticArguments()
          Exception scenario - incorrect static arguments set.
 void testInvalidArgumentsForExistingMethod()
          Exception scenario - target method is called with invalid arguments.
 void testInvalidMethodName()
          Exception scenario - target method is not declared by target object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDelegatorTests

public AbstractDelegatorTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

testDelegation

public void testDelegation()
                    throws Exception
Regular use - calling methods directly and via delegator leads to same results

Throws:
Exception

testDelegationWithArgument

public void testDelegationWithArgument()
                                throws Exception
Regular use - calling methods directly and via delegator leads to same results

Throws:
Exception

testDelegationWithMultipleArguments

public void testDelegationWithMultipleArguments()
                                         throws Exception
Regular use - calling methods directly and via delegator leads to same results

Throws:
Exception

testInvalidMethodName

public void testInvalidMethodName()
                           throws Exception
Exception scenario - target method is not declared by target object.

Throws:
Exception

testInvalidArgumentsForExistingMethod

public void testInvalidArgumentsForExistingMethod()
                                           throws Exception
Exception scenario - target method is called with invalid arguments.

Throws:
Exception

testIncorrectArgumentCount

public void testIncorrectArgumentCount()
                                throws Exception
Exception scenario - target method is called with incorrect number of arguments.

Throws:
Exception

testIncorrectNumberOfStaticArguments

public void testIncorrectNumberOfStaticArguments()
                                          throws Exception
Exception scenario - incorrect static arguments set.

Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.