@Override @BeforeMethod(alwaysRun = true) public void setUp() throws Exception { super.setUp(); origEntity = origApp.createAndManageChild(EntitySpec.create(TestEntity.class)); events = Lists.newCopyOnWriteArrayList(); eventListener = new SensorEventListener<FailureDescriptor>() { @Override public void onEvent(SensorEvent<FailureDescriptor> event) { events.add(event); } }; }
@BeforeMethod(alwaysRun = true) @Override public void setUp() throws Exception { super.setUp(); loc = origApp.newLocalhostProvisioningLocation(); }