This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Now i need to write a junittest for this, but I am not sure WHERE to start? 1. Should i create a NEW instance of the class this method belongs to? first. 2. How do i get an "inEvent" of type LoggingEvent? 3. So this is how i start writing test case for the method:
Since WmLoggerFilter is the class that contains testdecide()
I would appreciate any help.
Joined: Feb 15, 2005
Should i create a Logger, adn then attach an Appender to it, and then do a
and the test message would serve as object of type LoggingEvent? But "test message" is a String