@Test public void shouldReturnNullWhenGetByCodeIsNull() { assertThat(repo.getByCode(null), nullValue()); }
public FacilityType getByCode(String code) { if(code == null) return null; return mapper.getByCode(code); }
FacilityTypeRepository { public FacilityType getByCode(String code) { if(code == null) return null; return mapper.getByCode(code); } }
FacilityTypeRepository { public FacilityType getByCode(String code) { if(code == null) return null; return mapper.getByCode(code); } @Autowired  FacilityTypeRepository(FacilityTypeMapper facilityTypeMapper); }
FacilityTypeRepository { public FacilityType getByCode(String code) { if(code == null) return null; return mapper.getByCode(code); } @Autowired  FacilityTypeRepository(FacilityTypeMapper facilityTypeMapper); FacilityType getByCode(String code); FacilityType getByCodeOrThrowException(String code); List<FacilityType> getAll(); void save(FacilityType facilityType); FacilityType getFacilityTypeByCode(FacilityType facilityType); }
FacilityTypeRepository { public FacilityType getByCode(String code) { if(code == null) return null; return mapper.getByCode(code); } @Autowired  FacilityTypeRepository(FacilityTypeMapper facilityTypeMapper); FacilityType getByCode(String code); FacilityType getByCodeOrThrowException(String code); List<FacilityType> getAll(); void save(FacilityType facilityType); FacilityType getFacilityTypeByCode(FacilityType facilityType); static final String ERROR_FACILITY_TYPE_CODE_INVALID; }