public static File writeJUnitTestFile(String junitOutputDir,String packageName,ExecutableSequence es,String className){
  JunitFileWriter writer=new JunitFileWriter(junitOutputDir,packageName,"dummy");
  writer.createOutputDir();
  return writer.writeTestClass(Collections.singletonList(es),className);
}

public static File writeJUnitTestFile ( String junitOutputDir , String packageName , ExecutableSequence es , String className ) { JunitFileWriter writer = new JunitFileWriter ( junitOutputDir , packageName , "dummy" ) ; writer . createOutputDir ( ) ; return writer . writeTestClass ( Collections . singletonList ( es ) , className ) ; }
writejunittestfile is a static method that writes a single test class to the specified directory and with the specified class name .
