N
nospawn
Hi all,
I want to provide Test Cases for a validation and handling process.
The validation classes are just part of a chain process where if
the validation passes then it continues to the next "successor"
in the chain (of Responsibility -GoF) otherwise the validator stops
the process and does not forward the call but uses logging to file
the problem.
The only outcome of the validation classes is to:
- Write the issue into log.fatal(...) and does not forward the call.
- Forwards the call to the next successor.
Now I have two options to test the validation classes:
1-. Have the original class write some flags somewhere about the
outcome (nasty and original code intrusive solution).
2-. Have some logging scan facility .... is there any kind of
integration between Log4J and JUnit to achieve this?
TIA,
Best Regards,
Giovanni
I want to provide Test Cases for a validation and handling process.
The validation classes are just part of a chain process where if
the validation passes then it continues to the next "successor"
in the chain (of Responsibility -GoF) otherwise the validator stops
the process and does not forward the call but uses logging to file
the problem.
The only outcome of the validation classes is to:
- Write the issue into log.fatal(...) and does not forward the call.
- Forwards the call to the next successor.
Now I have two options to test the validation classes:
1-. Have the original class write some flags somewhere about the
outcome (nasty and original code intrusive solution).
2-. Have some logging scan facility .... is there any kind of
integration between Log4J and JUnit to achieve this?
TIA,
Best Regards,
Giovanni