r966 - lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx
Author: tchemit Date: 2008-10-18 02:02:29 +0000 (Sat, 18 Oct 2008) New Revision: 966 Modified: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompilerTest.java Log: minimize logging when testing errors Modified: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompilerTest.java =================================================================== --- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompilerTest.java 2008-10-18 02:02:02 UTC (rev 965) +++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompilerTest.java 2008-10-18 02:02:29 UTC (rev 966) @@ -2,6 +2,7 @@ import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; +import org.apache.maven.plugin.logging.SystemStreamLog; import java.io.File; @@ -68,6 +69,23 @@ for (String file : files) { mojo.setFiles(new String[]{file}); try { + mojo.setLog(new SystemStreamLog() { + public boolean isErrorEnabled() { + return false; + } + + public void error(Throwable error) { + //do nothing + } + + public void error(CharSequence content) { + //do nothing + } + + public void error(CharSequence content, Throwable error) { + //do nothing + } + }); mojo.execute(); // should never pass fail();
participants (1)
-
tchemit@users.labs.libre-entreprise.org