|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TestCase org.springframework.batch.repeat.exception.SimpleLimitExceptionHandlerTests
public class SimpleLimitExceptionHandlerTests
Unit tests for SimpleLimitExceptionHandler
Constructor Summary | |
---|---|
SimpleLimitExceptionHandlerTests()
|
Method Summary | |
---|---|
void |
testExceptionNotThrownBelowLimit()
TransactionInvalidExceptions are swallowed until the exception limit is exceeded. |
void |
testExceptionThrownAboveLimit()
TransactionInvalidExceptions are swallowed until the exception limit is exceeded. |
void |
testInitializeWithNullContext()
|
void |
testInitializeWithNullContextAndNullException()
|
void |
testLimitedExceptionNotThrownFromSiblings()
TransactionInvalidException should only be rethrown below the exception limit. |
void |
testLimitedExceptionThrownFromSiblingsWhenUsingParent()
TransactionInvalidException should only be rethrown below the exception limit. |
void |
testLimitedExceptionTypeNotThrown()
TransactionInvalidException should only be rethrown below the exception limit. |
void |
testNormalExceptionThrown()
Other than nominated exception type should be rethrown, ignoring the exception limit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleLimitExceptionHandlerTests()
Method Detail |
---|
public void testInitializeWithNullContext() throws Throwable
Throwable
public void testInitializeWithNullContextAndNullException() throws Throwable
Throwable
public void testNormalExceptionThrown() throws Throwable
Exception
Throwable
public void testLimitedExceptionTypeNotThrown() throws Throwable
Exception
Throwable
public void testLimitedExceptionNotThrownFromSiblings() throws Throwable
Exception
Throwable
public void testLimitedExceptionThrownFromSiblingsWhenUsingParent() throws Throwable
Exception
Throwable
public void testExceptionNotThrownBelowLimit() throws Throwable
Throwable
public void testExceptionThrownAboveLimit() throws Throwable
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |