I have managed to implement the logging in GWT 2.1 into my project.
However I have JUnit tests that don't play well with the new logging.

The JUnit test cases are based on TestCase and Mock out the View so
that the GWTestCase and the headless browser can be avoided.  However,
since the gwt.xml file is not read when a JUnit test case is run, the
logging config is not seen and logging doesn't work as planned.

To test logging all the different levels, the constructor for my
presenter has logging calls for each level.  The only levels that are
output are SEVERE, WARNING, and INFO.  Even calling the
setLevel(Level.ALL) method on the Logger class does not fix this.  It
looks like the default level is INFO.

Is there some way to get your JUnit tests to work correctly with the
new logging facility?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to