Program: 61533
Project: 61533
Buggy source:
/** 
 * We take the output of evosuite, we generate the spoon model, then we compile it, and finally we run the tests.
 * @throws Exception
 */
@SuppressWarnings("String_Node_Str") @Test public void testCompileSaveAndRunEvoSuiteTestStepByStep() throws Exception {
  MutationSupporter.currentSupporter=new MutationSupporter();
  String classpath4BuildModel=new File("String_Node_Str").getAbsolutePath() + File.pathSeparator + new File("String_Node_Str").getAbsolutePath()+ File.pathSeparator+ new File("String_Node_Str").getAbsolutePath();
  EvoSuiteFacade fev=new EvoSuiteFacade();
  List<CtClass> classes=fev.reificateEvoSuiteTest(new File("String_Node_Str").getAbsolutePath(),classpath4BuildModel.split(File.pathSeparator));
  assertEquals("String_Node_Str",2,classes.size());
  String classpathForCompileModel=new File("String_Node_Str").getAbsolutePath() + File.pathSeparator + new File("String_Node_Str").getAbsolutePath()+ File.pathSeparator+ new File("String_Node_Str").getAbsolutePath();
  log.info("String_Node_Str" + classpathForCompileModel);
  String[] classpathForEvoSuiteTest2=classpathForCompileModel.split(File.pathSeparator);
  CompilationResult compilation=MutationSupporter.currentSupporter.getSpoonClassCompiler().compileOnMemory(classes,Converters.toURLArray(classpathForEvoSuiteTest2));
  assertFalse("String_Node_Str",compilation.getByteCodes().values().isEmpty());
  assertEquals("String_Node_Str",2,compilation.getByteCodes().values().size());
  String outPutTest=new File(ConfigurationProperties.getProperty("String_Node_Str") + "String_Node_Str").getAbsolutePath();
  File fbyteEvo=new File(outPutTest);
  if (fbyteEvo.exists()) {
    FileUtils.deleteDirectory(fbyteEvo);
  }
  boolean created=fbyteEvo.mkdirs();
  assertTrue(created);
  assertTrue(fbyteEvo.exists());
  assertEquals(0,fbyteEvo.list().length);
  MutationSupporter.currentSupporter.getSpoonClassCompiler().saveByteCode(compilation,fbyteEvo);
  assertTrue(fbyteEvo.exists());
  assertTrue(fbyteEvo.list().length > 0);
  String classpathForRunTest=classpathForCompileModel + (File.pathSeparator) + outPutTest;
  URL[] classpath4Process=Converters.toURLArray(classpathForRunTest.split(File.pathSeparator));
  List<String> testToExecute=new ArrayList<>();
  for (  CtClass evoTest : classes) {
    if (!evoTest.getQualifiedName().endsWith("String_Node_Str"))     testToExecute.add(evoTest.getQualifiedName());
  }
  ProcessEvoSuiteValidator evoProcess=new ProcessEvoSuiteValidator();
  ProgramVariantValidationResult evoResult=evoProcess.executeRegressionTesting(classpath4Process,testToExecute);
  assertNotNull("String_Node_Str",evoResult);
  assertEquals("String_Node_Str",evoResult.getFailureCount(),0);
  assertTrue("String_Node_Str",evoResult.wasSuccessful());
  assertTrue("String_Node_Str",evoResult.getPassingTestCases() > 0);
}

Fixed version (ground truth):
/** 
 * We take the output of evosuite, we generate the spoon model, then we compile it, and finally we run the tests.
 * @throws Exception
 */
@SuppressWarnings("String_Node_Str") @Test public void testCompileSaveAndRunEvoSuiteTestStepByStep() throws Exception {
  MutationSupporter.currentSupporter=new MutationSupporter();
  String classpath4BuildModel=new File("String_Node_Str").getAbsolutePath() + File.pathSeparator + new File("String_Node_Str").getAbsolutePath()+ File.pathSeparator+ new File(ConfigurationProperties.getProperty("String_Node_Str")).getAbsolutePath();
  EvoSuiteFacade fev=new EvoSuiteFacade();
  List<CtClass> classes=fev.reificateEvoSuiteTest(new File("String_Node_Str").getAbsolutePath(),classpath4BuildModel.split(File.pathSeparator));
  assertEquals("String_Node_Str",2,classes.size());
  String classpathForCompileModel=new File("String_Node_Str").getAbsolutePath() + File.pathSeparator + new File("String_Node_Str").getAbsolutePath()+ File.pathSeparator+ new File(ConfigurationProperties.getProperty("String_Node_Str")).getAbsolutePath();
  log.info("String_Node_Str" + classpathForCompileModel);
  String[] classpathForEvoSuiteTest2=classpathForCompileModel.split(File.pathSeparator);
  CompilationResult compilation=MutationSupporter.currentSupporter.getSpoonClassCompiler().compileOnMemory(classes,Converters.toURLArray(classpathForEvoSuiteTest2));
  assertFalse("String_Node_Str",compilation.getByteCodes().values().isEmpty());
  assertEquals("String_Node_Str",2,compilation.getByteCodes().values().size());
  String outPutTest=new File(ConfigurationProperties.getProperty("String_Node_Str") + "String_Node_Str").getAbsolutePath();
  File fbyteEvo=new File(outPutTest);
  if (fbyteEvo.exists()) {
    FileUtils.deleteDirectory(fbyteEvo);
  }
  boolean created=fbyteEvo.mkdirs();
  assertTrue(created);
  assertTrue(fbyteEvo.exists());
  assertEquals(0,fbyteEvo.list().length);
  MutationSupporter.currentSupporter.getSpoonClassCompiler().saveByteCode(compilation,fbyteEvo);
  assertTrue(fbyteEvo.exists());
  assertTrue(fbyteEvo.list().length > 0);
  String classpathForRunTest=classpathForCompileModel + (File.pathSeparator) + outPutTest;
  URL[] classpath4Process=Converters.toURLArray(classpathForRunTest.split(File.pathSeparator));
  List<String> testToExecute=new ArrayList<>();
  for (  CtClass evoTest : classes) {
    if (!evoTest.getQualifiedName().endsWith("String_Node_Str"))     testToExecute.add(evoTest.getQualifiedName());
  }
  ProcessEvoSuiteValidator evoProcess=new ProcessEvoSuiteValidator();
  ProgramVariantValidationResult evoResult=evoProcess.executeRegressionTesting(classpath4Process,testToExecute);
  assertNotNull("String_Node_Str",evoResult);
  assertEquals("String_Node_Str",evoResult.getFailureCount(),0);
  assertTrue("String_Node_Str",evoResult.wasSuccessful());
  assertTrue("String_Node_Str",evoResult.getPassingTestCases() > 0);
}