@Test public void passes_AllSatisfiedCompositePropertySpecification_to_the_builder() { SpecimenBuilder builder = this.behaviour.transform(this.mockBuilder); AutoPropertyBuilder autoPropertyBuilder = (AutoPropertyBuilder) builder; assertTrue(autoPropertyBuilder.specification() instanceof AllSatisfiedCompositePropertySpecification); }
@Override public SpecimenBuilder transform(SpecimenBuilder builder) { return new AutoPropertyBuilder( builder, new AutoPropertyPopulater(), new AllSatisfiedCompositePropertySpecification(this.allSpecifications)); }
AutoPropertyBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { return new AutoPropertyBuilder( builder, new AutoPropertyPopulater(), new AllSatisfiedCompositePropertySpecification(this.allSpecifications)); } }
AutoPropertyBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { return new AutoPropertyBuilder( builder, new AutoPropertyPopulater(), new AllSatisfiedCompositePropertySpecification(this.allSpecifications)); } AutoPropertyBehaviour(); }
AutoPropertyBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { return new AutoPropertyBuilder( builder, new AutoPropertyPopulater(), new AllSatisfiedCompositePropertySpecification(this.allSpecifications)); } AutoPropertyBehaviour(); @Override SpecimenBuilder transform(SpecimenBuilder builder); Collection<Specification> specifications(); }
AutoPropertyBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { return new AutoPropertyBuilder( builder, new AutoPropertyPopulater(), new AllSatisfiedCompositePropertySpecification(this.allSpecifications)); } AutoPropertyBehaviour(); @Override SpecimenBuilder transform(SpecimenBuilder builder); Collection<Specification> specifications();  }