@Test public void finding_behaviour_returns_null_if_behaviour_type_not_added() { FixtureBehaviour found = this.behaviours.find(this.mockBehaviour.getClass()); assertNull(found); }
public <T extends FixtureBehaviour> T find(Class<T> clazz) { for (FixtureBehaviour t : this.allBehaviours) { if (t.getClass().equals(clazz)) { return (T)t; } } return null; }
FixtureBehaviours implements BehavioursContainer { public <T extends FixtureBehaviour> T find(Class<T> clazz) { for (FixtureBehaviour t : this.allBehaviours) { if (t.getClass().equals(clazz)) { return (T)t; } } return null; } }
FixtureBehaviours implements BehavioursContainer { public <T extends FixtureBehaviour> T find(Class<T> clazz) { for (FixtureBehaviour t : this.allBehaviours) { if (t.getClass().equals(clazz)) { return (T)t; } } return null; } FixtureBehaviours(FinalBuilderContainer finalBuilderContainer, SpecimenBuilder rootBuilder); }
FixtureBehaviours implements BehavioursContainer { public <T extends FixtureBehaviour> T find(Class<T> clazz) { for (FixtureBehaviour t : this.allBehaviours) { if (t.getClass().equals(clazz)) { return (T)t; } } return null; } FixtureBehaviours(FinalBuilderContainer finalBuilderContainer, SpecimenBuilder rootBuilder); void add(FixtureBehaviour behaviour); boolean remove(Class<? extends FixtureBehaviour> classToRemove); T find(Class<T> clazz); }
FixtureBehaviours implements BehavioursContainer { public <T extends FixtureBehaviour> T find(Class<T> clazz) { for (FixtureBehaviour t : this.allBehaviours) { if (t.getClass().equals(clazz)) { return (T)t; } } return null; } FixtureBehaviours(FinalBuilderContainer finalBuilderContainer, SpecimenBuilder rootBuilder); void add(FixtureBehaviour behaviour); boolean remove(Class<? extends FixtureBehaviour> classToRemove); T find(Class<T> clazz);  }