@Test public void non_boolean_type_returns_no_specimen() { Object result = booleanGenerator.create(Integer.class, null); assertEquals(new NoSpecimen(), result); }
@Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Boolean.class)) { return new NoSpecimen(); } value = !value; return value; }
SwitchingBooleanGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Boolean.class)) { return new NoSpecimen(); } value = !value; return value; } }
SwitchingBooleanGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Boolean.class)) { return new NoSpecimen(); } value = !value; return value; }  }
SwitchingBooleanGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Boolean.class)) { return new NoSpecimen(); } value = !value; return value; }  @Override Object create(Object request, SpecimenContext context); }
SwitchingBooleanGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Boolean.class)) { return new NoSpecimen(); } value = !value; return value; }  @Override Object create(Object request, SpecimenContext context);  }