@Test public void removing_behaviour_returns_false_if_behaviour_not_found() { assertFalse(this.behaviours.remove(this.mockBehaviour.getClass())); }
public boolean remove(Class<? extends FixtureBehaviour> classToRemove) { FixtureBehaviour behaviourToRemove = find(classToRemove); if(behaviourToRemove != null) { this.allBehaviours.remove(behaviourToRemove); this.resetFinalBuilder(); return true; } return false; }
FixtureBehaviours implements BehavioursContainer { public boolean remove(Class<? extends FixtureBehaviour> classToRemove) { FixtureBehaviour behaviourToRemove = find(classToRemove); if(behaviourToRemove != null) { this.allBehaviours.remove(behaviourToRemove); this.resetFinalBuilder(); return true; } return false; } }
FixtureBehaviours implements BehavioursContainer { public boolean remove(Class<? extends FixtureBehaviour> classToRemove) { FixtureBehaviour behaviourToRemove = find(classToRemove); if(behaviourToRemove != null) { this.allBehaviours.remove(behaviourToRemove); this.resetFinalBuilder(); return true; } return false; } FixtureBehaviours(FinalBuilderContainer finalBuilderContainer, SpecimenBuilder rootBuilder); }
FixtureBehaviours implements BehavioursContainer { public boolean remove(Class<? extends FixtureBehaviour> classToRemove) { FixtureBehaviour behaviourToRemove = find(classToRemove); if(behaviourToRemove != null) { this.allBehaviours.remove(behaviourToRemove); this.resetFinalBuilder(); return true; } return false; } FixtureBehaviours(FinalBuilderContainer finalBuilderContainer, SpecimenBuilder rootBuilder); void add(FixtureBehaviour behaviour); boolean remove(Class<? extends FixtureBehaviour> classToRemove); T find(Class<T> clazz); }
FixtureBehaviours implements BehavioursContainer { public boolean remove(Class<? extends FixtureBehaviour> classToRemove) { FixtureBehaviour behaviourToRemove = find(classToRemove); if(behaviourToRemove != null) { this.allBehaviours.remove(behaviourToRemove); this.resetFinalBuilder(); return true; } return false; } FixtureBehaviours(FinalBuilderContainer finalBuilderContainer, SpecimenBuilder rootBuilder); void add(FixtureBehaviour behaviour); boolean remove(Class<? extends FixtureBehaviour> classToRemove); T find(Class<T> clazz);  }