@Test(dependsOnMethods = {"testInstantiateAndIsRegistered"}) public void testUnregister() { DurationEvaluators d = DurationEvaluators.newBundle(); Assert.assertTrue(d.unRegister(MigrateVM.class)); Assert.assertFalse(d.isRegistered(MigrateVM.class)); Assert.assertFalse(d.unRegister(MigrateVM.class)); }
public boolean unRegister(Class<? extends Action> a) { return durations.remove(a) != null; }
DurationEvaluators { public boolean unRegister(Class<? extends Action> a) { return durations.remove(a) != null; } }
DurationEvaluators { public boolean unRegister(Class<? extends Action> a) { return durations.remove(a) != null; } DurationEvaluators(); }
DurationEvaluators { public boolean unRegister(Class<? extends Action> a) { return durations.remove(a) != null; } DurationEvaluators(); boolean register(Class<? extends Action> a, ActionDurationEvaluator e); boolean unRegister(Class<? extends Action> a); boolean isRegistered(Class<? extends Action> a); ActionDurationEvaluator<Element> getEvaluator(Class<? extends Action> a); int evaluate(Model mo, Class<? extends Action> a, Element e); static DurationEvaluators newBundle(); }
DurationEvaluators { public boolean unRegister(Class<? extends Action> a) { return durations.remove(a) != null; } DurationEvaluators(); boolean register(Class<? extends Action> a, ActionDurationEvaluator e); boolean unRegister(Class<? extends Action> a); boolean isRegistered(Class<? extends Action> a); ActionDurationEvaluator<Element> getEvaluator(Class<? extends Action> a); int evaluate(Model mo, Class<? extends Action> a, Element e); static DurationEvaluators newBundle();  }