コード例 #1
0
 @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);
         }
       };
 }
コード例 #2
0
 @BeforeMethod(alwaysRun = true)
 @Override
 public void setUp() throws Exception {
   super.setUp();
   loc = origApp.newLocalhostProvisioningLocation();
 }