private Lifecycle lifecycle;
@Before
public void mySetUp() throws Exception {
control = createControl();
addTearDown(new TearDown() {
@Override
public void tearDown() {
if (mainException.get().isPresent()) {
RuntimeException e = mainException.get().get();
LOG.log(Level.SEVERE, "Scheduler main exited with an exception", e);
fail(e.getMessage());
}
control.verify();
}
});
backupDir = FileUtils.createTempDir();
addTearDown(new TearDown() {
@Override
public void tearDown() throws Exception {
org.apache.commons.io.FileUtils.deleteDirectory(backupDir);
}
});