use of org.testng.annotations.AfterClass in project helix by apache.
the class TestMixedModeAutoRebalance method afterClass.
@AfterClass
public void afterClass() throws Exception {
/**
* shutdown order: 1) disconnect the controller 2) disconnect participants
*/
_controller.syncStop();
for (MockParticipantManager participant : _participants) {
participant.syncStop();
}
System.out.println("END " + CLASS_NAME + " at " + new Date(System.currentTimeMillis()));
}
use of org.testng.annotations.AfterClass in project presto by prestodb.
the class TestFileMergeCacheManager method close.
@AfterClass
public void close() throws IOException {
flushExecutor.shutdown();
removeExecutor.shutdown();
checkState(cacheDirectory != null);
checkState(fileDirectory != null);
Files.deleteIfExists(dataFile.toPath());
File[] files = new File(cacheDirectory).listFiles();
if (files != null) {
for (File file : files) {
Files.delete(file.toPath());
}
}
Files.deleteIfExists(new File(cacheDirectory).toPath());
Files.deleteIfExists(new File(fileDirectory).toPath());
}
use of org.testng.annotations.AfterClass in project presto by prestodb.
the class TestGenericPartitioningSpiller method tearDown.
@AfterClass(alwaysRun = true)
public void tearDown() throws Exception {
try (Closer closer = Closer.create()) {
closer.register(() -> scheduledExecutor.shutdownNow());
closer.register(() -> deleteRecursively(tempDirectory, ALLOW_INSECURE));
}
}
use of org.testng.annotations.AfterClass in project presto by prestodb.
the class TestPrometheusQueryMatrixResponseParse method tearDown.
@AfterClass(alwaysRun = true)
public void tearDown() {
try {
promMatrixResponse.close();
promErrorResponse.close();
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
use of org.testng.annotations.AfterClass in project cloudbreak by hortonworks.
the class MockClusterCreationWithSaltSuccessTest method breakDown.
@AfterClass
public void breakDown() {
StackCreationMock stackCreationMock = getItContext().getContextParam(CloudbreakV2Constants.MOCK_SERVER, StackCreationMock.class);
stackCreationMock.stop();
}
Aggregations