Re: Log4J logging during WOUnit tests
Re: Log4J logging during WOUnit tests
- Subject: Re: Log4J logging during WOUnit tests
- From: Henrique Prange <email@hidden>
- Date: Tue, 10 Apr 2012 14:16:29 -0300
Hi Paul,
Properties files are not loaded when tests are executed by JUnit. There is an issue [1] for that problem. The current workaround is to load the Properties files manually or set the required properties in a static method annotated with @BeforeClass.
I'll try to spend some time with WOUnit since there are too many open bugs in the tracker.
[1]https://github.com/hprange/wounit/issues/24
Cheers,
Henrique
On 10/04/2012, at 02:32, Paul Hoadley wrote:
> Hi Henrique,
>
> Should Log4J logging in EOs under test just work during WOUnit testing? The EOs and WOUnit tests are in a single framework. I have Properties.paulh in that framework where I'm setting log levels and properties for a console appender. I can see the properties get picked up at launch. Is there something else I need to do to kick start Log4J logging here? I'm getting no output to the console when I'm expecting it.
>
>
> --
> Paul.
>
> http://logicsquad.net/
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden