@Test public void findByNameEmptyTest() { when(photoRepo.findByName("")).thenReturn(Optional.empty()); assertEquals(Optional.empty(), photoService.findByName("")); }
@Override public Optional<Photo> findByName(String name) { return photoRepo.findByName(name); }
PhotoServiceImpl implements PhotoService { @Override public Optional<Photo> findByName(String name) { return photoRepo.findByName(name); } }
PhotoServiceImpl implements PhotoService { @Override public Optional<Photo> findByName(String name) { return photoRepo.findByName(name); }  }
PhotoServiceImpl implements PhotoService { @Override public Optional<Photo> findByName(String name) { return photoRepo.findByName(name); }  @Override Optional<Photo> findByName(String name); }
PhotoServiceImpl implements PhotoService { @Override public Optional<Photo> findByName(String name) { return photoRepo.findByName(name); }  @Override Optional<Photo> findByName(String name);  }