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