net.sf.excha
Class AbstractSubstituteThroableTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.springframework.test.ConditionalTestCase
org.springframework.test.AbstractSpringContextTests
org.springframework.test.AbstractSingleSpringContextTests
org.springframework.test.AbstractDependencyInjectionSpringContextTests
net.sf.excha.AbstractSubstituteThroableTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- SubstituteThrowableAutoProxyTest, SubstituteThrowableSchemaBasedTest
public abstract class AbstractSubstituteThroableTest
- extends org.springframework.test.AbstractDependencyInjectionSpringContextTests
| 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 |
| 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 |
methodAnnotated
protected MethodAnnotatedFoo methodAnnotated
annotatedClass
protected AnnotatedFoo annotatedClass
AbstractSubstituteThroableTest
public AbstractSubstituteThroableTest()
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.