Program: 61499
Project: 61499
Buggy source:
@SuppressWarnings("String_Node_Str") @Test public void testGenerateEvosuiteTestsStepByStep() throws Exception {
  AstorMain main1=new AstorMain();
  String dep=new File("String_Node_Str").getAbsolutePath();
  File out=new File(ConfigurationProperties.getProperty("String_Node_Str"));
  String[] args=new String[]{"String_Node_Str",dep,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",new File("String_Node_Str").getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",out.getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  System.out.println(Arrays.toString(args));
  main1.execute(args);
  assertTrue(main1.getEngine().getSolutions().size() == 0);
  assertEquals(1,main1.getEngine().getVariants().size());
  ProgramVariant variant=main1.getEngine().getVariants().get(0);
  log.info("String_Node_Str");
  EvoSuiteFacade fev=new EvoSuiteFacade();
  String outES=main1.getEngine().getProjectFacade().getInDirWithPrefix(ConfigurationProperties.getProperty("String_Node_Str"));
  List<String> affectedTypes=variant.getAffectedClasses().stream().map(e -> e.getQualifiedName()).collect(Collectors.toList());
  boolean executed=fev.runEvosuite(variant,affectedTypes,main1.getEngine().getProjectFacade(),outES,true);
  assertTrue(executed);
  String testEScodepath=main1.getEngine().getProjectFacade().getInDirWithPrefix(ConfigurationProperties.getProperty("String_Node_Str"));
  File esPath=new File(testEScodepath);
  assertTrue("String_Node_Str",esPath.exists());
  log.info("String_Node_Str" + esPath);
  log.info("String_Node_Str");
  String bytecodeSUTLocation=main1.getEngine().getProjectFacade().getOutDirWithPrefix(ProgramVariant.DEFAULT_ORIGINAL_VARIANT);
  String classpathForModelizeEvoSuite="String_Node_Str";
  classpathForModelizeEvoSuite+=(new File(ConfigurationProperties.getProperty("String_Node_Str")).getAbsolutePath());
  classpathForModelizeEvoSuite+=(File.pathSeparator + main1.getEngine().getProjectFacade().getProperties().getDependenciesString());
  classpathForModelizeEvoSuite+=(File.pathSeparator + bytecodeSUTLocation);
  String[] classpathForModelizeEvoSuiteTest=classpathForModelizeEvoSuite.split(File.pathSeparator);
  List<CtClass> classes=fev.reificateEvoSuiteTest(testEScodepath,classpathForModelizeEvoSuiteTest);
  classes.stream().forEach(e -> log.info("String_Node_Str" + e.getQualifiedName()));
  assertTrue("String_Node_Str",classes.size() >= 2);
  assertFalse(main1.getEngine().getMutatorSupporter().getTestClasses().contains(classes.get(0)));
  String classpathForCompileSpoon="String_Node_Str";
  classpathForCompileSpoon=main1.getEngine().getProjectFacade().getProperties().getDependenciesString() + File.pathSeparator + bytecodeSUTLocation+ File.pathSeparator+ new File(ConfigurationProperties.getProperty("String_Node_Str")).getAbsolutePath();
  String[] classpathForCreateModel=classpathForCompileSpoon.split(File.pathSeparator);
  CompilationResult compilation=main1.getEngine().getCompiler().compile(classes,Converters.toURLArray(classpathForCreateModel));
  assertFalse("String_Node_Str",compilation.getByteCodes().values().isEmpty());
  String outPutTest=main1.getEngine().getProjectFacade().getOutDirWithPrefix("String_Node_Str" + variant.currentMutatorIdentifier());
  File fbyteEvo=new File(outPutTest);
  log.info("String_Node_Str" + fbyteEvo);
  MutationSupporter.currentSupporter.getOutput().saveByteCode(compilation,fbyteEvo);
  assertTrue(fbyteEvo.exists());
  assertTrue(fbyteEvo.list().length > 0);
  List<String> testToExecute=new ArrayList<>();
  for (  CtClass evoTest : classes) {
    if (!evoTest.getQualifiedName().endsWith("String_Node_Str"))     testToExecute.add(evoTest.getQualifiedName());
  }
  String classpathForRunTest=classpathForCompileSpoon + (File.pathSeparator) + outPutTest;
  log.info("String_Node_Str" + classpathForRunTest);
  ProcessEvoSuiteValidator evoProcess=new ProcessEvoSuiteValidator();
  TestCaseVariantValidationResult evoResult=evoProcess.executeRegressionTesting(Converters.toURLArray(classpathForRunTest.split(File.pathSeparator)),testToExecute);
  assertNotNull("String_Node_Str",evoResult);
  assertEquals("String_Node_Str",evoResult.getFailureCount(),0);
  assertTrue("String_Node_Str",evoResult.isSuccessful());
  assertTrue("String_Node_Str",evoResult.getPassingTestCases() > 0);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Test public void testGenerateEvosuiteTestsStepByStep() throws Exception {
  AstorMain main1=new AstorMain();
  String dep=new File("String_Node_Str").getAbsolutePath();
  File out=new File(ConfigurationProperties.getProperty("String_Node_Str"));
  String[] args=new String[]{"String_Node_Str",dep,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",new File("String_Node_Str").getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",out.getAbsolutePath(),"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  System.out.println(Arrays.toString(args));
  main1.execute(args);
  assertTrue(main1.getEngine().getSolutions().size() == 0);
  assertEquals(1,main1.getEngine().getVariants().size());
  ProgramVariant variant=main1.getEngine().getVariants().get(0);
  log.info("String_Node_Str");
  EvoSuiteFacade fev=new EvoSuiteFacade();
  String outES=main1.getEngine().getProjectFacade().getInDirWithPrefix(ConfigurationProperties.getProperty("String_Node_Str"));
  List<String> affectedTypes=variant.getAffectedClasses().stream().map(e -> e.getQualifiedName()).collect(Collectors.toList());
  boolean executed=fev.runEvosuite(variant,affectedTypes,main1.getEngine().getProjectFacade(),outES,true);
  assertTrue(executed);
  String testEScodepath=main1.getEngine().getProjectFacade().getInDirWithPrefix(ConfigurationProperties.getProperty("String_Node_Str"));
  File esPath=new File(testEScodepath);
  assertTrue("String_Node_Str",esPath.exists());
  log.info("String_Node_Str" + esPath);
  log.info("String_Node_Str");
  String bytecodeSUTLocation=main1.getEngine().getProjectFacade().getOutDirWithPrefix(ProgramVariant.DEFAULT_ORIGINAL_VARIANT);
  String classpathForModelizeEvoSuite="String_Node_Str";
  classpathForModelizeEvoSuite+=(new File(ConfigurationProperties.getProperty("String_Node_Str")).getAbsolutePath());
  classpathForModelizeEvoSuite+=(File.pathSeparator + main1.getEngine().getProjectFacade().getProperties().getDependenciesString());
  classpathForModelizeEvoSuite+=(File.pathSeparator + bytecodeSUTLocation);
  String[] classpathForModelizeEvoSuiteTest=classpathForModelizeEvoSuite.split(File.pathSeparator);
  List<CtClass> classes=fev.reificateEvoSuiteTest(testEScodepath,classpathForModelizeEvoSuiteTest);
  classes.stream().forEach(e -> log.info("String_Node_Str" + e.getQualifiedName()));
  assertTrue("String_Node_Str",classes.size() >= 2);
  String classpathForCompileSpoon="String_Node_Str";
  classpathForCompileSpoon=main1.getEngine().getProjectFacade().getProperties().getDependenciesString() + File.pathSeparator + bytecodeSUTLocation+ File.pathSeparator+ new File(ConfigurationProperties.getProperty("String_Node_Str")).getAbsolutePath();
  String[] classpathForCreateModel=classpathForCompileSpoon.split(File.pathSeparator);
  CompilationResult compilation=main1.getEngine().getCompiler().compile(classes,Converters.toURLArray(classpathForCreateModel));
  assertFalse("String_Node_Str",compilation.getByteCodes().values().isEmpty());
  String outPutTest=main1.getEngine().getProjectFacade().getOutDirWithPrefix("String_Node_Str" + variant.currentMutatorIdentifier());
  File fbyteEvo=new File(outPutTest);
  log.info("String_Node_Str" + fbyteEvo);
  MutationSupporter.currentSupporter.getOutput().saveByteCode(compilation,fbyteEvo);
  assertTrue(fbyteEvo.exists());
  assertTrue(fbyteEvo.list().length > 0);
  List<String> testToExecute=new ArrayList<>();
  for (  CtClass evoTest : classes) {
    if (!evoTest.getQualifiedName().endsWith("String_Node_Str"))     testToExecute.add(evoTest.getQualifiedName());
  }
  String classpathForRunTest=classpathForCompileSpoon + (File.pathSeparator) + outPutTest;
  log.info("String_Node_Str" + classpathForRunTest);
  ProcessEvoSuiteValidator evoProcess=new ProcessEvoSuiteValidator();
  TestCaseVariantValidationResult evoResult=evoProcess.executeRegressionTesting(Converters.toURLArray(classpathForRunTest.split(File.pathSeparator)),testToExecute);
  assertNotNull("String_Node_Str",evoResult);
  assertEquals("String_Node_Str",evoResult.getFailureCount(),0);
  assertTrue("String_Node_Str",evoResult.isSuccessful());
  assertTrue("String_Node_Str",evoResult.getPassingTestCases() > 0);
}