[jbosscache-dev] maven test output stops when System.out.println calls are encountered

Brian Stansberry brian.stansberry at redhat.com
Fri Aug 31 10:09:07 EDT 2007


Are you volunteering to replace the hundreds of such calls in the JBoss 
Cache codebase. ;)  If so, please move on and do JBoss AS when you're done!

Galder Zamarreno wrote:
> Hi,
> 
> I've been running the cache loader migration tests via maven and I 
> spotted that only the first test results would print to the standard 
> output. The rest of tests would run, but the output would not appear.
> 
> Digging a little bit, I found http://jira.codehaus.org/browse/SUREFIRE-315
> 
> Basically, at the end of the first test run, whose results appear on the 
> STDOUT (TransformingFileCacheLoaderTest), 
> TestingUtil.recursiveFileRemove(targetLoc) is called which removes some 
> files created during tests.
> 
> Within TestingUtil.recursiveFileRemove(targetLoc) there's a 
> System.out.println("Deleting file " + file); call which ends up messing 
> test output. Removing it solves the problem.
> 
> If everyone's happy with it, I would change this System.out.println call 
> to a logger call.
>


-- 
Brian Stansberry
Lead, AS Clustering
JBoss, a division of Red Hat
brian.stansberry at redhat.com




More information about the jbosscache-dev mailing list