@Test public void no_resolution_guard_is_given_the_builder() { NoResolutionGuard guard = (NoResolutionGuard)this.behaviour.transform(this.mockSpecimenBuilder); assertSame(guard.builder(), this.mockSpecimenBuilder); }
@Override public SpecimenBuilder transform(SpecimenBuilder builder) { if (builder == null) throw new IllegalArgumentException(); return new NoResolutionGuard(builder, new ThrowingNoResolutionHandler()); }
ThrowOnNoResolutionBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { if (builder == null) throw new IllegalArgumentException(); return new NoResolutionGuard(builder, new ThrowingNoResolutionHandler()); } }
ThrowOnNoResolutionBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { if (builder == null) throw new IllegalArgumentException(); return new NoResolutionGuard(builder, new ThrowingNoResolutionHandler()); }  }
ThrowOnNoResolutionBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { if (builder == null) throw new IllegalArgumentException(); return new NoResolutionGuard(builder, new ThrowingNoResolutionHandler()); }  @Override SpecimenBuilder transform(SpecimenBuilder builder); }
ThrowOnNoResolutionBehaviour implements FixtureBehaviour { @Override public SpecimenBuilder transform(SpecimenBuilder builder) { if (builder == null) throw new IllegalArgumentException(); return new NoResolutionGuard(builder, new ThrowingNoResolutionHandler()); }  @Override SpecimenBuilder transform(SpecimenBuilder builder);  }