Buggy code:
public class AjcTaskTest extends TestCase { private static final Class NO_EXCEPTION = null ; private static final String NOFILE = "NOFILE" ; private static final File tempDir ; private static final String aspectjtoolsJar ; private static final String testdataDir ; private static final StringBuffer MESSAGES = new StringBuffer ( ) ; private static FileFilter PICK_CLASS_FILES ; public static void main ( String [ ] args ) { } public static void collectMessage ( String s ) { } private static void deleteTempDir ( ) { } private static final File getTempDir ( ) { } public AjcTaskTest ( String name ) { } public void tearDown ( ) { } private void checkRun ( AjcTask task , String exceptionString ) { } private void checkContains ( String [ ] cmd , String option , boolean contains ) { } protected AjcTask getTask ( String input ) { } protected AjcTask getTask ( String input , File destDir ) { } public static class InfoHolder extends MessageHandler { public InfoHolder ( ) { } public boolean handleMessage ( IMessage message ) { } } public static class Holder extends MessageHandler { public Holder ( ) { } public boolean handleMessage ( IMessage message ) { } } public void testNullDestDir ( ) { } public void testOutputRequirement ( ) { } public void testSourceRootCopyFilter ( ) { } public void testInpathDirCopyFilter ( ) { } public void testInpathDirCopyFilterWithJar ( ) throws IOException { } public void testInpathDirCopyFilterWithOddjar ( ) throws IOException { } private void checkInpathCopy ( String outjarFileStr ) throws IOException { } public void testInpathDirCopyFilterError ( ) { } public void testLoggingMode ( ) { AjcTask task = getTask ( "default.lst" ) ; task . setFailonerror ( false ) ; File logFile = new File ( "testLogFile1.txt" ) ; String s = logFile . getAbsolutePath ( ) ; logFile . delete ( ) ; long initialLength = logFile . length ( ) ; task . setLog ( logFile ) ; <START_BUG> runTest ( task , null , null ) ; <END_BUG> long newLength = logFile . length ( ) ; assertTrue ( ( newLength > initialLength ) ) ; logFile . delete ( ) ; } public void testCommandEditor ( ) { } public void testLimitTo ( ) { } public void testFindAspectjtoolsJar ( ) { } public void testMessageHolderClassName ( ) { } public void skip_testMessageHolderClassWithDoneSignal ( ) { } public void testDefaultListForkedNoTools ( ) { } public void testDefaultListForkedIncremental ( ) { } public void testCompileErrorFailOnErrorDefault ( ) { } public void testCompileErrorListDefaultHolder ( ) { } public void testDefaultList ( ) { } public void testCompileErrorList ( ) { } public void testShowWeaveInfo ( ) { } public void testCompileWarningList ( ) { } public void testNoSuchFileList ( ) { } public void testVersions ( ) { } public void testClasspath ( ) { } public void testNoFile ( ) { } public void testCompileErrorFile ( ) { } public void testCompileWarningFile ( ) { } public void testNoSuchFile ( ) { } public void testDefaultFileComplete ( ) { } private void defaultSettings ( AjcTask task ) { } public void testLogCommand ( ) { } public void testXOptions ( ) { } public void testOutxml ( ) { } public void testOutxmlFile ( ) { } protected void runTest ( AjcTask task , Class exceptionType , AjcTaskTest . MessageHolderChecker checker , String messageHolderClass ) { } protected void runTest ( AjcTask task , Class exceptionType , AjcTaskTest . MessageHolderChecker checker ) { } protected void runTest ( AjcTask task , Class exceptionType , AjcTaskTest . MessageHolderChecker checker , MessageHandler holder ) { } protected String render ( Throwable thrown ) { } static class MessageHolderChecker { static int IGNORE = Integer . MIN_VALUE ; static AjcTaskTest . MessageHolderChecker NONE = new AjcTaskTest . MessageHolderChecker ( 0 , 0 , 0 , 0 , 0 ) ; static AjcTaskTest . MessageHolderChecker INFOS = new AjcTaskTest . MessageHolderChecker ( 0 , 0 , 0 , 0 , AjcTaskTest . MessageHolderChecker . IGNORE ) ; static AjcTaskTest . MessageHolderChecker ONE_ERROR = new AjcTaskTest . MessageHolderChecker ( 0 , 0 , 1 , 0 , AjcTaskTest . MessageHolderChecker . IGNORE ) ; static AjcTaskTest . MessageHolderChecker ONE_ERROR_ONE_ABORT = new AjcTaskTest . MessageHolderChecker ( 1 , 0 , 1 , 0 , AjcTaskTest . MessageHolderChecker . IGNORE ) ; static AjcTaskTest . MessageHolderChecker ONE_WARNING = new AjcTaskTest . MessageHolderChecker ( 0 , 0 , 0 , 1 , AjcTaskTest . MessageHolderChecker . IGNORE ) ; int aborts ; int fails ; int errors ; int warnings ; int infos ; int weaveinfos ; public MessageHolderChecker ( int aborts , int fails , int errors , int warnings , int infos ) { } public boolean expectFail ( ) { } public void check ( IMessageHolder holder , String label ) { } private void check ( IMessageHolder holder , int num , IMessage . Kind kind ) { } } private static class LogListener implements BuildListener { private final ArrayList results = new ArrayList ( ) ; private final int priority ; private LogListener ( int priority ) { } public void buildFinished ( BuildEvent event ) { } public void buildStarted ( BuildEvent event ) { } public void messageLogged ( BuildEvent event ) { } public void targetFinished ( BuildEvent event ) { } public void targetStarted ( BuildEvent event ) { } public void taskFinished ( BuildEvent event ) { } public void taskStarted ( BuildEvent event ) { } String [ ] getResults ( ) { } } }

Fix:
runTest ( task , null , AjcTaskTest . MessageHolderChecker . INFOS ) ;