use of org.testng.annotations.AfterClass in project shifu by ShifuML.
the class AbstractTrainerTest method delete.
@AfterClass
public void delete() throws IOException {
File json = new File(".");
File[] files = json.listFiles(filter);
if (files != null) {
for (File tmp : files) {
FileUtils.deleteQuietly(tmp);
}
} else {
throw new IOException(String.format("Failed to list files in %s", json.getAbsolutePath()));
}
FileUtils.deleteDirectory(new File("tmp"));
}
use of org.testng.annotations.AfterClass in project shifu by ShifuML.
the class LogisticRegressionTest method tearDown.
@AfterClass
public void tearDown() throws IOException {
FileUtils.deleteDirectory(new File("./models/"));
FileUtils.deleteDirectory(new File("./modelsTmp/"));
FileUtils.deleteQuietly(new File("ModelConfig.json"));
FileUtils.deleteDirectory(new File("test"));
}
use of org.testng.annotations.AfterClass in project shifu by ShifuML.
the class ScorerTest method delete.
@AfterClass
public void delete() throws IOException {
FileUtils.deleteDirectory(new File("tmp"));
FileUtils.deleteDirectory(new File("models"));
FileUtils.deleteDirectory(new File("test-output"));
FileUtils.deleteDirectory(new File(Constants.COLUMN_META_FOLDER_NAME));
}
Aggregations