> Hi all,
>
[quoted text clipped - 17 lines]
> 2-. Have some logging scan facility .... is there any kind of
> integration between Log4J and JUnit to achieve this?
Could you write a custom logger that makes a callback to the junit test
case with any logged messages, allowing you to determine if anything
happened? As for success it sounds like mock objects might help. Come to
think of it a mock logger might work quite nicely as well.
James
Giovanni Azua - 03 Feb 2006 19:39 GMT
Hi James,
Many thanks for your response!
> Could you write a custom logger that makes a callback to the junit test
> case with any logged messages, allowing you to determine if anything
> happened? As for success it sounds like mock objects might help. Come to
> think of it a mock logger might work quite nicely as well.
That is a great idea :)
But trying could not setup a custom Appender or even Logger actually
Appender is better for me because my Test class already inherits from
TestCase so I had it implement Appender ... it does not work ... any
hints as to where find an example?
Many thanks!
Best Regards,
Giovanni