@Test public void testFindOne01() { TourInfo info = new TourInfo(); when(tourInfoRepository.findById("foo")).thenReturn(Optional.of(info)); TourInfo result = tourInfoSharedService.findOne("foo"); assertThat(result, is(info)); }
@Override public TourInfo findOne(String tourCode) { return tourInfoRepository.findById(tourCode).orElse(null); }
TourInfoSharedServiceImpl implements TourInfoSharedService { @Override public TourInfo findOne(String tourCode) { return tourInfoRepository.findById(tourCode).orElse(null); } }
TourInfoSharedServiceImpl implements TourInfoSharedService { @Override public TourInfo findOne(String tourCode) { return tourInfoRepository.findById(tourCode).orElse(null); }  }
TourInfoSharedServiceImpl implements TourInfoSharedService { @Override public TourInfo findOne(String tourCode) { return tourInfoRepository.findById(tourCode).orElse(null); }  @Override TourInfo findOne(String tourCode); @Override boolean isOverPaymentLimit(TourInfo tour); @Override TourInfo findOneForUpdate(String tourCode); }
TourInfoSharedServiceImpl implements TourInfoSharedService { @Override public TourInfo findOne(String tourCode) { return tourInfoRepository.findById(tourCode).orElse(null); }  @Override TourInfo findOne(String tourCode); @Override boolean isOverPaymentLimit(TourInfo tour); @Override TourInfo findOneForUpdate(String tourCode);  }