net.sf.excha
Class AbstractSubstituteThroableTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.test.ConditionalTestCase
              extended by org.springframework.test.AbstractSpringContextTests
                  extended by org.springframework.test.AbstractSingleSpringContextTests
                      extended by org.springframework.test.AbstractDependencyInjectionSpringContextTests
                          extended by net.sf.excha.AbstractSubstituteThroableTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
SubstituteThrowableAutoProxyTest, SubstituteThrowableSchemaBasedTest

public abstract class AbstractSubstituteThroableTest
extends org.springframework.test.AbstractDependencyInjectionSpringContextTests


Field Summary
protected  AnnotatedFoo annotatedClass
           
protected  MethodAnnotatedFoo methodAnnotated
           
 
Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO
 
Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests
applicationContext
 
Fields inherited from class org.springframework.test.ConditionalTestCase
logger
 
Constructor Summary
AbstractSubstituteThroableTest()
           
 
Method Summary
 void setAnnotatedFoo(AnnotatedFoo foo)
           
 void setMethodAnnotatedFoo(MethodAnnotatedFoo foo)
           
 void testDoNotSubstituteDerivedFromIOException()
           
 void testHandledByCustomExeptionHandler()
           
 void testHandledByCustomExeptionHandlerReturningAValue()
           
 void testHandledByDoNothingExceptionHandler()
           
 void testingDoNotHandleThrowsSocketExceptionExpectedRuntimeException()
           
 void testingDoNotHandleThrowsSocketExceptionExpectedSocketException()
           
 void testNoSubstituteExceptionDefinded()
           
 void testNotAnnotatedMethodThrowsIOExceptionThatMustBeSubstitutedByRuntimeException()
           
 void testNotHandledByCustomExeptionHandler()
           
 void testNotThrowingExceptionAnnotatedClassMethod()
           
 void testNotThrowingExceptionAnnotatedMethod()
           
 void testSubstitueForAnnotatedClass()
           
 void testSubstituteDefault()
           
 void testSubstituteDoNotWrapCauseUsingExceptionWithoutStringConstructor()
           
 void testsubstituteDoNotWrapTryInsertMessageToNoStringConstructor()
           
 void testSubstituteDoNotWrapTryInsertMessageToNoStringConstructor()
           
 void testSubstituteExceptionDefindedHandledBySuppress()
           
 void testSubstituteExectyIOException()
           
 void testSubstituteKeepMessage()
           
 void testSubstituteListOfExceptionTest()
           
 void testSubstituteWithIllegalException()
           
 void testSubstituteWithLegalNotRuntimeException()
           
 void testSubstituteWithMessage()
           
 void testSubstituteWithMessageWithSubstituteWithoutConstructorForString()
           
 void testSubstituteWithSubstituteWithoutConstructorForString()
           
 void testSubstituteWrapCause()
           
 void testSubstituteWrapCauseAndSubstituteWithoutConstructorForString()
           
 void testSwallowException()
           
 void testThrowsExceptionEachTimeItIsCalled()
           
 void testThrowsExceptionEachTimeItIsCalledWeExcpectRetriesWithDelay()
           
 void testThrowsExceptionOnlyOnFirstCall()
           
 void testThrowsIllegalArgumentMustNotBeSubstituted()
           
 
Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables
 
Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests
contextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigLocations, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, onSetUp, onTearDown, prepareApplicationContext, setDirty, setUp, tearDown
 
Methods inherited from class org.springframework.test.AbstractSpringContextTests
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty
 
Methods inherited from class org.springframework.test.ConditionalTestCase
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, 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

methodAnnotated

protected MethodAnnotatedFoo methodAnnotated

annotatedClass

protected AnnotatedFoo annotatedClass
Constructor Detail

AbstractSubstituteThroableTest

public AbstractSubstituteThroableTest()
Method Detail

setMethodAnnotatedFoo

public void setMethodAnnotatedFoo(MethodAnnotatedFoo foo)

setAnnotatedFoo

public void setAnnotatedFoo(AnnotatedFoo foo)

testNotAnnotatedMethodThrowsIOExceptionThatMustBeSubstitutedByRuntimeException

public void testNotAnnotatedMethodThrowsIOExceptionThatMustBeSubstitutedByRuntimeException()

testSubstituteDefault

public void testSubstituteDefault()

testSubstituteWrapCause

public void testSubstituteWrapCause()

testSubstituteWrapCauseAndSubstituteWithoutConstructorForString

public void testSubstituteWrapCauseAndSubstituteWithoutConstructorForString()

testSubstituteDoNotWrapTryInsertMessageToNoStringConstructor

public void testSubstituteDoNotWrapTryInsertMessageToNoStringConstructor()

testSubstituteDoNotWrapCauseUsingExceptionWithoutStringConstructor

public void testSubstituteDoNotWrapCauseUsingExceptionWithoutStringConstructor()
                                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testsubstituteDoNotWrapTryInsertMessageToNoStringConstructor

public void testsubstituteDoNotWrapTryInsertMessageToNoStringConstructor()
                                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testSubstituteWithMessage

public void testSubstituteWithMessage()

testSubstituteWithMessageWithSubstituteWithoutConstructorForString

public void testSubstituteWithMessageWithSubstituteWithoutConstructorForString()
                                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testSubstituteWithSubstituteWithoutConstructorForString

public void testSubstituteWithSubstituteWithoutConstructorForString()

testSubstituteKeepMessage

public void testSubstituteKeepMessage()

testSubstituteListOfExceptionTest

public void testSubstituteListOfExceptionTest()

testDoNotSubstituteDerivedFromIOException

public void testDoNotSubstituteDerivedFromIOException()

testSubstituteExectyIOException

public void testSubstituteExectyIOException()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testSubstituteWithLegalNotRuntimeException

public void testSubstituteWithLegalNotRuntimeException()

testSubstituteWithIllegalException

public void testSubstituteWithIllegalException()

testSwallowException

public void testSwallowException()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testNotThrowingExceptionAnnotatedMethod

public void testNotThrowingExceptionAnnotatedMethod()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

testSubstitueForAnnotatedClass

public void testSubstitueForAnnotatedClass()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testThrowsIllegalArgumentMustNotBeSubstituted

public void testThrowsIllegalArgumentMustNotBeSubstituted()
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

testNotThrowingExceptionAnnotatedClassMethod

public void testNotThrowingExceptionAnnotatedClassMethod()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testHandledByCustomExeptionHandler

public void testHandledByCustomExeptionHandler()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testHandledByCustomExeptionHandlerReturningAValue

public void testHandledByCustomExeptionHandlerReturningAValue()
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

testNotHandledByCustomExeptionHandler

public void testNotHandledByCustomExeptionHandler()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testHandledByDoNothingExceptionHandler

public void testHandledByDoNothingExceptionHandler()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testNoSubstituteExceptionDefinded

public void testNoSubstituteExceptionDefinded()

testSubstituteExceptionDefindedHandledBySuppress

public void testSubstituteExceptionDefindedHandledBySuppress()
                                                      throws java.io.IOException
Throws:
java.io.IOException

testThrowsExceptionOnlyOnFirstCall

public void testThrowsExceptionOnlyOnFirstCall()
                                        throws java.io.IOException
Throws:
java.io.IOException

testThrowsExceptionEachTimeItIsCalled

public void testThrowsExceptionEachTimeItIsCalled()
                                           throws java.io.IOException
Throws:
java.io.IOException

testThrowsExceptionEachTimeItIsCalledWeExcpectRetriesWithDelay

public void testThrowsExceptionEachTimeItIsCalledWeExcpectRetriesWithDelay()
                                                                    throws java.io.IOException
Throws:
java.io.IOException

testingDoNotHandleThrowsSocketExceptionExpectedRuntimeException

public void testingDoNotHandleThrowsSocketExceptionExpectedRuntimeException()
                                                                     throws java.io.IOException
Throws:
java.io.IOException

testingDoNotHandleThrowsSocketExceptionExpectedSocketException

public void testingDoNotHandleThrowsSocketExceptionExpectedSocketException()
                                                                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2007-2008. All Rights Reserved.