@Test public void shouldReturnNullIfGetByCodeGivenNull() { assertThat(repo.getByCode(null), nullValue()); }
public FacilityOperator getByCode(String code) { if(code == null) return null; return facilityOperatorMapper.getByCode(code); }
FacilityOperatorRepository { public FacilityOperator getByCode(String code) { if(code == null) return null; return facilityOperatorMapper.getByCode(code); } }
FacilityOperatorRepository { public FacilityOperator getByCode(String code) { if(code == null) return null; return facilityOperatorMapper.getByCode(code); } @Autowired  FacilityOperatorRepository(FacilityOperatorMapper facilityOperatorMapper); }
FacilityOperatorRepository { public FacilityOperator getByCode(String code) { if(code == null) return null; return facilityOperatorMapper.getByCode(code); } @Autowired  FacilityOperatorRepository(FacilityOperatorMapper facilityOperatorMapper); FacilityOperator getByCode(String code); void save(FacilityOperator facilityOperator); FacilityOperator getById(long id); List<FacilityOperator> getAll(); }
FacilityOperatorRepository { public FacilityOperator getByCode(String code) { if(code == null) return null; return facilityOperatorMapper.getByCode(code); } @Autowired  FacilityOperatorRepository(FacilityOperatorMapper facilityOperatorMapper); FacilityOperator getByCode(String code); void save(FacilityOperator facilityOperator); FacilityOperator getById(long id); List<FacilityOperator> getAll();  }