@AfterMethod(alwaysRun = true) @Override public void tearDown() throws Exception { super.tearDown(); BrooklynFeatureEnablement.setEnablement( BrooklynFeatureEnablement.FEATURE_CATALOG_PERSISTENCE_PROPERTY, catalogPersistenceWasEnabled); }
@BeforeMethod(alwaysRun = true) @Override public void setUp() throws Exception { catalogPersistenceWasEnabled = BrooklynFeatureEnablement.isEnabled( BrooklynFeatureEnablement.FEATURE_CATALOG_PERSISTENCE_PROPERTY); BrooklynFeatureEnablement.enable( BrooklynFeatureEnablement.FEATURE_CATALOG_PERSISTENCE_PROPERTY); super.setUp(); origApp.createAndManageChild(EntitySpec.create(TestEntity.class)); }
@Override @BeforeMethod(alwaysRun = true) public void setUp() throws Exception { super.setUp(); origCluster = origApp.createAndManageChild( EntitySpec.create(DynamicCluster.class) .configure("memberSpec", EntitySpec.create(TestEntity.class))); origEntity = origApp.createAndManageChild(EntitySpec.create(TestEntity.class)); origLoc = origManagementContext .getLocationManager() .createLocation(LocationSpec.create(SimulatedLocation.class)); }