|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sasl.aop.exception.handling.ServiceExceptionFirewallAspectTest
public class ServiceExceptionFirewallAspectTest
Test cases for the
ServiceExceptionFirewallAspect
class.
Nested Class Summary | |
---|---|
class |
ServiceExceptionFirewallAspectTest.AnotherDummyResponseDTO
Dummy class for some test cases of the ServiceExceptionFirewallAspectTest |
Constructor Summary | |
---|---|
ServiceExceptionFirewallAspectTest()
|
Method Summary | |
---|---|
void |
setUp()
|
OneDerivedDummyResponseDTO |
testCaseHelperMethod()
Dummy method which is needed for some test cases like testConstructReturnValueSuccess() . |
ServiceExceptionFirewallAspectTest.AnotherDummyResponseDTO |
testCaseHelperMethodTwo()
Dummy method which is needed for the testConstructReturnValueInstantiationError() test case. |
void |
testConstructReturnValueInstantiationError()
Test case for constructReturnValue . |
void |
testConstructReturnValueNoConfigBean()
Test case for constructReturnValue . |
void |
testConstructReturnValueSuccess()
Test case for constructReturnValue . |
void |
testInvokeSuccessful()
Test cases for invoke which test the scenario that the intercepted method does not
throw a throwable during execution. |
void |
testSetConfigBeanListValid()
Test cases for setConfigBeanList with config bean lists that are valid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceExceptionFirewallAspectTest()
Method Detail |
---|
public void setUp()
public void testInvokeSuccessful() throws Throwable
invoke
which test the scenario that the intercepted method does not
throw a throwable during execution.
Throwable
public void testSetConfigBeanListValid() throws Exception
setConfigBeanList
with config bean lists that are valid. The test cases
also cover
lookupConfigForClass
to check if the config beans were put into the
lookup map.
Exception
public void testConstructReturnValueSuccess() throws Exception
constructReturnValue
. Test if the correct result object is constructed,
if there exists a config bean for the return value type of the target
method which throwed the throwable.
Exception
public void testConstructReturnValueNoConfigBean() throws Exception
constructReturnValue
. Test if null is returned, if no config bean for
the return type of the target method which failed could be looked up.
Exception
public void testConstructReturnValueInstantiationError() throws Exception
constructReturnValue
. Test if null is returned, if the instantiation of
the result object failed.
Exception
public OneDerivedDummyResponseDTO testCaseHelperMethod()
testConstructReturnValueSuccess()
.
public ServiceExceptionFirewallAspectTest.AnotherDummyResponseDTO testCaseHelperMethodTwo()
testConstructReturnValueInstantiationError()
test case.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |