@Test public void recursion_guard_is_given_omit_specimen_handler() { RecursionGuard guard = (RecursionGuard)this.behaviour.transform(this.mockSpecimenBuilder); assertTrue(guard.handler() instanceof OmitSpecimenRecursionHandler); }
@Override public SpecimenBuilder transform(SpecimenBuilder builder) { if (builder == null) { throw new IllegalArgumentException("builder"); } return new RecursionGuard(builder, new OmitSpecimenRecursionHandler()); }
OmitSpecimenRecursionBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { if (builder == null) { throw new IllegalArgumentException("builder"); } return new RecursionGuard(builder, new OmitSpecimenRecursionHandler()); } }
OmitSpecimenRecursionBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { if (builder == null) { throw new IllegalArgumentException("builder"); } return new RecursionGuard(builder, new OmitSpecimenRecursionHandler()); }  }
OmitSpecimenRecursionBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { if (builder == null) { throw new IllegalArgumentException("builder"); } return new RecursionGuard(builder, new OmitSpecimenRecursionHandler()); }  @Override SpecimenBuilder transform(SpecimenBuilder builder); }
OmitSpecimenRecursionBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { if (builder == null) { throw new IllegalArgumentException("builder"); } return new RecursionGuard(builder, new OmitSpecimenRecursionHandler()); }  @Override SpecimenBuilder transform(SpecimenBuilder builder);  }