This content has been marked as final.
Show 3 replies
-
1. Re: Null log inside EntityQuery while testing with TestNG
cash1981 Feb 20, 2009 3:06 PM (in response to vanyatka)Just use the seam logger in your RegionList and it should work fine.
@Logger
Log log;
and instead if getLog(), just have log.warn("");
And then testng logging should also be displayed.
If it is not displayed, then check your log levels. Maybe it is set to error. -
2. Re: Null log inside EntityQuery while testing with TestNG
vanyatka Feb 20, 2009 3:16 PM (in response to vanyatka)
Just use the seam logger in your RegionList and it should work fine.
@Logger
Log log;Thanks for advice, Shervin
However, the component extends EntityQuery, which already has a log object (and getLog() works fine on the server). It makes little sense injecting another one to a subclass. Besides, it is a nuisance having to add it to each EntityQuery component.
I was hoping for some testNG configuration setup that would eliminate the problem.
-
3. Re: Null log inside EntityQuery while testing with TestNG
paulmkeogh May 29, 2009 12:54 PM (in response to vanyatka)It doesnt work for me either !
Any suggestions anyone - can't believe its not possible to test a component with @Logger ?