org.freecompany.imp

Class JUnit

public class JUnit extends JUnitTask

This task extends the core task for running unit tests to enable customizable logging per run. The behavior is identical to the base task class except that an optional log level can be specified which will be universally applied against all packages in the master logger. Existing levels for each handler and the root logger are saved and reset after the tests complete.
Field Summary
protected Levellevel
protected String[]packages
Constructor Summary
JUnit()
For some unknown reason the base class constructor throws Exception so our default constructor must match.
Method Summary
voidexecute()
voidsetLevel(String level)
voidsetLoggers(String packages)

Field Detail

level

protected Level level

packages

protected String[] packages

Constructor Detail

JUnit

public JUnit()
For some unknown reason the base class constructor throws Exception so our default constructor must match.

Method Detail

execute

public void execute()

setLevel

public void setLevel(String level)

setLoggers

public void setLoggers(String packages)