If MockStrutsTestCase is using Log4j then you can do something like this in
your test cases:

import org.apache.log4j.Level;
import org.apache.log4j.Logger;

Logger.getLogger("org.apache.commons.digester.Digester").setLevel(Level.ERROR);



laredotornado wrote:
> 
> Hi,
> 
> I'm using the latest version of MockStrutsTestCase to test my Struts 1.3
> application.  I'm using Ant 1.6.  I have Ant Junit tasks that look like
> ...
> 
>         <target name="run-refresh-test" depends="build-tests">
>                       <junit dir="${build}" fork="true" haltonfailure="true">
>                               <classpath>
>                                               <path 
> refid="project.class.path"/>
>                                               <pathelement 
> path="${java.class.path}"/>
>                                                       <pathelement 
> path="${war-file}" /> 
>                                                       <pathelement 
> path="${build}"/>
>                                                       <pathelement 
> path="${conf-dir}" />
>                               </classpath>
>                         <test name="RefreshTest" todir="${docsDir}"
> outfile="junit.refresh.result">
>                                 <formatter type="xml"/>
>                         </test>               
>                       </junit>
>         </target>
> 
> but when I run my test case, my result outfile contains all these lines
> like:
> 
>  DEBUG [main] (Digester.java:1436) -   New
> match='web-app/servlet/init-param'
> 
> I think this might have something to do with MockStrutsTestCase.  Anyone
> know how to turn debugging off?
> 
> Thanks, - Dave
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-turn-off-debug-statements-when-using-MockStrutsTestCase-with-JUnit--tp23339681p23367853.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to