net.sf.excha.foo
Interface MethodAnnotatedFoo

All Known Implementing Classes:
MethodAnnotatedFooImpl

public interface MethodAnnotatedFoo


Field Summary
static long DELAY_BEFORE_RETRY
           
static java.lang.String EXCEPTION_MESSAGE
           
static java.lang.String ORIGIN_MESSAGE
           
 
Method Summary
 void doNotSubstituteDerivedFromIOException()
           
 void handledByCustomExeptionHandler()
           
 boolean handledByCustomExeptionHandlerReturningAValue()
           
 java.lang.Boolean handledByDoNothingExceptionHandler()
           
 void noSubstituteExceptionDefinded()
           
 void noSubstituteExceptionDefindedHandledBySuppress()
           
 void notAnnotatedMethodThrowsIOExceptionThatMustBeSubstitutedByRuntimeException()
           
 void notHandledByCustomExeptionHandler()
           
 void notThrowingException()
           
 void substituteDefault()
           
 void substituteDoNotWrapCauseUsingExceptionWithoutStringConstructor()
           
 void substituteDoNotWrapTryInsertMessageToNoStringConstructor()
           
 void substituteExectyIOException()
           
 void substituteIOException()
           
 void substituteKeepMessage()
           
 void substituteWithIllegalException()
           
 void substituteWithLegalNotRuntimeException()
           
 void substituteWithMessage()
           
 void substituteWithMessageWithSubstituteWithoutConstructorForString()
           
 void substituteWithSubstituteWithoutConstructorForString()
           
 void substituteWrapCause()
           
 void substituteWrapCauseAndSubstituteWithoutConstructorForString()
           
 void substituteWrapCauseAndSubstituteWithoutConstructorForStringTryingToKeepOriginalMethod()
           
 java.lang.String swallowException()
           
 java.lang.String testingDoNotHandleThrowsSocketExceptionExpectedRuntimeException()
           
 java.lang.String testingDoNotHandleThrowsSocketExceptionExpectedSocketException()
           
 void throwsExceptionEachTimeItIsCalled()
           
 void throwsExceptionEachTimeItIsCalledWeExcpectRetriesWithDelay()
           
 void throwsExceptionOnlyOnFirstCall()
           
 

Field Detail

ORIGIN_MESSAGE

static final java.lang.String ORIGIN_MESSAGE
See Also:
Constant Field Values

EXCEPTION_MESSAGE

static final java.lang.String EXCEPTION_MESSAGE
See Also:
Constant Field Values

DELAY_BEFORE_RETRY

static final long DELAY_BEFORE_RETRY
See Also:
Constant Field Values
Method Detail

notAnnotatedMethodThrowsIOExceptionThatMustBeSubstitutedByRuntimeException

void notAnnotatedMethodThrowsIOExceptionThatMustBeSubstitutedByRuntimeException()
                                                                                throws java.io.IOException
Throws:
java.io.IOException

substituteDefault

void substituteDefault()
                       throws java.lang.Exception
Throws:
java.lang.Exception

substituteWrapCause

void substituteWrapCause()
                         throws java.lang.Exception
Throws:
java.lang.Exception

substituteWrapCauseAndSubstituteWithoutConstructorForString

void substituteWrapCauseAndSubstituteWithoutConstructorForString()
                                                                 throws java.lang.Exception
Throws:
java.lang.Exception

substituteWrapCauseAndSubstituteWithoutConstructorForStringTryingToKeepOriginalMethod

void substituteWrapCauseAndSubstituteWithoutConstructorForStringTryingToKeepOriginalMethod()
                                                                                           throws java.lang.Exception
Throws:
java.lang.Exception

substituteDoNotWrapCauseUsingExceptionWithoutStringConstructor

void substituteDoNotWrapCauseUsingExceptionWithoutStringConstructor()
                                                                    throws java.lang.Exception
Throws:
java.lang.Exception

substituteDoNotWrapTryInsertMessageToNoStringConstructor

void substituteDoNotWrapTryInsertMessageToNoStringConstructor()
                                                              throws java.lang.Exception
Throws:
java.lang.Exception

substituteWithMessage

void substituteWithMessage()
                           throws java.lang.Exception
Throws:
java.lang.Exception

substituteWithMessageWithSubstituteWithoutConstructorForString

void substituteWithMessageWithSubstituteWithoutConstructorForString()
                                                                    throws java.lang.Exception
Throws:
java.lang.Exception

substituteWithSubstituteWithoutConstructorForString

void substituteWithSubstituteWithoutConstructorForString()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

substituteKeepMessage

void substituteKeepMessage()
                           throws java.lang.Exception
Throws:
java.lang.Exception

substituteIOException

void substituteIOException()
                           throws java.lang.Exception
Throws:
java.lang.Exception

substituteExectyIOException

void substituteExectyIOException()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

doNotSubstituteDerivedFromIOException

void doNotSubstituteDerivedFromIOException()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

substituteWithLegalNotRuntimeException

void substituteWithLegalNotRuntimeException()
                                            throws java.io.IOException
Throws:
java.io.IOException

substituteWithIllegalException

void substituteWithIllegalException()
                                    throws java.net.SocketException
Throws:
java.net.SocketException

swallowException

java.lang.String swallowException()
                                  throws java.io.IOException
Throws:
java.io.IOException

notThrowingException

void notThrowingException()

notHandledByCustomExeptionHandler

void notHandledByCustomExeptionHandler()
                                       throws java.io.IOException
Throws:
java.io.IOException

handledByCustomExeptionHandler

void handledByCustomExeptionHandler()
                                    throws ExceptionWithoutStringConstructor
Throws:
ExceptionWithoutStringConstructor

handledByCustomExeptionHandlerReturningAValue

boolean handledByCustomExeptionHandlerReturningAValue()
                                                      throws ExceptionWithoutStringConstructor
Throws:
ExceptionWithoutStringConstructor

handledByDoNothingExceptionHandler

java.lang.Boolean handledByDoNothingExceptionHandler()
                                                     throws ExceptionWithoutStringConstructor
Throws:
ExceptionWithoutStringConstructor

noSubstituteExceptionDefinded

void noSubstituteExceptionDefinded()

noSubstituteExceptionDefindedHandledBySuppress

void noSubstituteExceptionDefindedHandledBySuppress()
                                                    throws java.io.IOException
Throws:
java.io.IOException

throwsExceptionOnlyOnFirstCall

void throwsExceptionOnlyOnFirstCall()
                                    throws java.io.IOException
Throws:
java.io.IOException

throwsExceptionEachTimeItIsCalled

void throwsExceptionEachTimeItIsCalled()
                                       throws java.io.IOException
Throws:
java.io.IOException

throwsExceptionEachTimeItIsCalledWeExcpectRetriesWithDelay

void throwsExceptionEachTimeItIsCalledWeExcpectRetriesWithDelay()
                                                                throws java.io.IOException
Throws:
java.io.IOException

testingDoNotHandleThrowsSocketExceptionExpectedSocketException

java.lang.String testingDoNotHandleThrowsSocketExceptionExpectedSocketException()
                                                                                throws java.io.IOException
Throws:
java.io.IOException

testingDoNotHandleThrowsSocketExceptionExpectedRuntimeException

java.lang.String testingDoNotHandleThrowsSocketExceptionExpectedRuntimeException()
                                                                                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2007-2008. All Rights Reserved.