Buggy code:
public abstract class CompilerTest { protected static final String dir = "test//src" ; protected static final String destDirGeneral = "build//test-cars" ; protected static final String cacheDirGeneral = "build//test-cache" ; public static final String LANGUAGE_MODULE_CAR = ( "..//ceylon.language//ide-dist//ceylon.language-" + ( TypeChecker . LANGUAGE_MODULE_VERSION ) ) + ".car" ; protected final String destDir ; protected final String cacheDir ; protected final String moduleName ; protected final List < String > defaultOptions ; public static final String [ ] CLASS_PATH = new String [ ] { "..//ceylon-spec//bin" , ".//build//classes" , ".//..//ceylon-module-resolver//build//classes" , ".//..//ceylon-common//build//classes" , ".//..//ceylon-runtime//build//classes" , ".//..//ceylon-runtime//lib//jboss-modules-1.3.3.Final.jar" , ".//..//ceylon-module-resolver//lib//slf4j-api-1.6.1.jar" , CompilerTest . LANGUAGE_MODULE_CAR } ; public static final String CLASS_PATH_AS_PATH ; public static final Object RUN_LOCK = new Object ( ) ; public CompilerTest ( ) { } public static String getClassPathAsPath ( ) { } public static String [ ] getClassPath ( ) { } public static String getClassPathAsPathExcludingLanguageModule ( ) { } protected String transformDestDir ( String name ) { } protected CeyloncTool makeCompiler ( ) { } protected String getPackagePath ( ) { } protected CeyloncFileManager makeFileManager ( CeyloncTool compiler , DiagnosticListener < ? super FileObject > diagnosticListener ) { } protected void compareWithJavaSource ( String name ) { } protected void compareWithJavaSourceNoOpt ( String name ) { } @ Before public void cleanCars ( ) { } public void cleanCars ( String repo ) { } protected void assertErrors ( String ceylon , CompilerError ... expectedErrors ) { } protected void assertErrors ( String ceylon , Throwable expectedException , CompilerError ... expectedErrors ) { } protected void assertErrors ( String ceylon , List < String > options , Throwable expectedException , CompilerError ... expectedErrors ) { } protected void assertErrors ( String [ ] ceylonFiles , List < String > options , Throwable expectedException , CompilerError ... expectedErrors ) { } protected void assertErrors ( String [ ] ceylonFiles , List < String > options , Throwable expectedException , Diagnostic . Kind [ ] kinds , CompilerError ... expectedErrors ) { } private boolean eq ( Object o1 , Object o2 ) { } protected void compareErrors ( Set < CompilerError > actualErrors , CompilerError ... expectedErrors ) { } public interface ExpectedError { boolean expected ( CompilerError e ) { } } protected void compareErrors ( TreeSet < CompilerError > actualErrors , CompilerTest . ExpectedError expectedErrors ) { } protected void compileIgnoringErrors ( CompilerTest . ExpectedError expectedErrors , String ... ceylon ) { } protected void compareWithJavaSourceWithPositions ( String name ) { } protected void compareWithJavaSourceWithLines ( String name ) { CeyloncTaskImpl task = getCompilerTask ( new String [ ] { name + ".ceylon" } ) ; class Listener implements TaskListener { JCCompilationUnit compilationUnit ; private String compilerSrc ; private JavaPositionsRetriever javaPositionsRetriever = new JavaPositionsRetriever ( ) ; @ Override public void started ( TaskEvent e ) { } @ Override public void finished ( TaskEvent e ) { if ( ( e . getKind ( ) ) == ( Kind . ENTER ) ) { if ( ( compilationUnit ) == null ) { compilationUnit = ( ( JCCompilationUnit ) ( e . getCompilationUnit ( ) ) ) ; javaPositionsRetriever . retrieve ( compilationUnit ) ; compilerSrc = normalizeLineEndings ( javaPositionsRetriever . getJavaSourceCodeWithCeylonLines ( ) ) ; AbstractTransformer . trackNodePositions ( null ) ; } } } } Listener listener = new Listener ( ) ; task . setTaskListener ( listener ) ; ExitState exitState = task . call2 ( ) ; <START_BUG> Assert . assertEquals ( "Compilation<seq2seq4repair_space>failed" , ( ( exitState . ceylonState ) == ( CeylonState . OK ) ) ) ; <END_BUG> String expectedSrc = normalizeLineEndings ( readFile ( new File ( getPackagePath ( ) , ( name + ".src" ) ) ) ) . trim ( ) ; String compiledSrc = listener . compilerSrc . trim ( ) ; Assert . assertEquals ( "Source<seq2seq4repair_space>code<seq2seq4repair_space>differs" , expectedSrc , compiledSrc ) ; } protected void compareWithJavaSource ( String java , String ... ceylon ) { } protected void compareWithJavaSource ( List < String > options , String java , String ... ceylon ) { } protected void assertCompilesOk ( ErrorCollector collector , ExitState exitState ) throws AssertionError { } protected String readFile ( File file ) { } private void writeFile ( File file , String src ) { } protected String normalizeLineEndings ( String txt ) { } protected void compile ( String ... ceylon ) { } protected void compilesWithoutWarnings ( String ... ceylon ) { } protected Object compileAndRun ( String main , String ... ceylon ) { } protected Object run ( String main ) { } public class ModuleWithArtifact { private String module ; private String version ; private File file ; public ModuleWithArtifact ( String module , String version ) { } } public static ArtifactResult makeArtifactResult ( final File file ) { } protected Class < ? > loadClass ( String className , CompilerTest . ModuleWithArtifact ... modules ) { } protected Object run ( String main , CompilerTest . ModuleWithArtifact ... modules ) { } protected Object run ( String main , Class < ? > [ ] sig , Object [ ] args , CompilerTest . ModuleWithArtifact ... modules ) { } protected URLClassLoader getClassLoader ( String main , CompilerTest . ModuleWithArtifact ... modules ) throws MalformedURLException { } @ SuppressWarnings ( "deprecation" ) protected List < URL > getClassPathAsUrls ( CompilerTest . ModuleWithArtifact ... modules ) throws MalformedURLException { } protected List < File > getClassPathAsFiles ( CompilerTest . ModuleWithArtifact ... modules ) { } protected CeyloncTaskImpl getCompilerTask ( String ... sourcePaths ) { } protected CeyloncTaskImpl getCompilerTask ( DiagnosticListener < ? super FileObject > diagnosticListener , String ... sourcePaths ) { } protected CeyloncTaskImpl getCompilerTask ( List < String > options , String ... sourcePaths ) { } protected CeyloncTaskImpl getCompilerTask ( List < String > options , DiagnosticListener < ? super FileObject > diagnosticListener , String ... sourcePaths ) { }

Fix:
Assert . assertEquals ( "Compilation<seq2seq4repair_space>failed" , exitState . ceylonState , OK ) ;