@Test public void character_type_request_returns_a_character() { Object result = this.characterGenerator.create(Character.class, null); assertTrue(result instanceof Character); }
@Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Character.class)) { return new NoSpecimen(); } return (char) (random.nextInt(26) + 'a'); }
CharacterGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Character.class)) { return new NoSpecimen(); } return (char) (random.nextInt(26) + 'a'); } }
CharacterGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Character.class)) { return new NoSpecimen(); } return (char) (random.nextInt(26) + 'a'); }  }
CharacterGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Character.class)) { return new NoSpecimen(); } return (char) (random.nextInt(26) + 'a'); }  @Override Object create(Object request, SpecimenContext context); }
CharacterGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Character.class)) { return new NoSpecimen(); } return (char) (random.nextInt(26) + 'a'); }  @Override Object create(Object request, SpecimenContext context);  }