@AfterTest public void shutdown() { if (group != null) { client .getPlacementGroupServices() .deletePlacementGroupInRegion(group.getRegion(), group.getName()); assert deletedTester.apply(group) : group; } }
@Override @AfterClass(groups = {"integration", "live"}) protected void tearDownContext() { if (group != null) { client .getPlacementGroupApi() .get() .deletePlacementGroupInRegion(group.getRegion(), group.getName()); assert deletedTester.apply(group) : group; } super.tearDownContext(); }