@Test(expected = WebCertServiceException.class) public void testCloseAshandledNotFound() { when(fragasvarRepositoryMock.findById(1L)).thenReturn(Optional.empty()); try { service.closeQuestionAsHandled(1L); } finally { verify(fragasvarRepositoryMock, never()).save(any(FragaSvar.class)); verifyNoInteractions(notificationServiceMock); verifyNoInteractions(certificateEventService); } }
@Override public FragaSvar closeQuestionAsHandled(Long frageSvarId) { return closeQuestionAsHandled(lookupFragaSvar(frageSvarId)); }
FragaSvarServiceImpl implements FragaSvarService { @Override public FragaSvar closeQuestionAsHandled(Long frageSvarId) { return closeQuestionAsHandled(lookupFragaSvar(frageSvarId)); } }
FragaSvarServiceImpl implements FragaSvarService { @Override public FragaSvar closeQuestionAsHandled(Long frageSvarId) { return closeQuestionAsHandled(lookupFragaSvar(frageSvarId)); }  }
FragaSvarServiceImpl implements FragaSvarService { @Override public FragaSvar closeQuestionAsHandled(Long frageSvarId) { return closeQuestionAsHandled(lookupFragaSvar(frageSvarId)); }  @Override FragaSvar processIncomingQuestion(FragaSvar fragaSvar); @Override FragaSvar processIncomingAnswer(Long internId, String svarsText, LocalDateTime svarSigneringsDatum); @Override @Transactional(readOnly = true) List<FragaSvarView> getFragaSvar(String intygId); @Override FragaSvar saveSvar(Long fragaSvarsId, String svarsText); @Override List<FragaSvarView> answerKomplettering(final String intygsId, final String svarsText); @Override FragaSvar saveNewQuestion(String intygId, String typ, Amne amne, String frageText); @Override List<FragaSvar> setVidareBefordrad(final String intygsId); @Override FragaSvar closeQuestionAsHandled(Long frageSvarId); @Override void closeCompletionsAsHandled(String intygId); @Override void closeAllNonClosedQuestions(String intygsId); @Override FragaSvar openQuestionAsUnhandled(Long frageSvarId); @Override @Transactional(readOnly = true) QueryFragaSvarResponse filterFragaSvar(Filter filter); @Override @Transactional(readOnly = true) List<Lakare> getFragaSvarHsaIdByEnhet(String enhetsId); @Override Map<String, Long> getNbrOfUnhandledFragaSvarForCareUnits(List<String> vardenheterIds, Set<String> intygsTyper); }
FragaSvarServiceImpl implements FragaSvarService { @Override public FragaSvar closeQuestionAsHandled(Long frageSvarId) { return closeQuestionAsHandled(lookupFragaSvar(frageSvarId)); }  @Override FragaSvar processIncomingQuestion(FragaSvar fragaSvar); @Override FragaSvar processIncomingAnswer(Long internId, String svarsText, LocalDateTime svarSigneringsDatum); @Override @Transactional(readOnly = true) List<FragaSvarView> getFragaSvar(String intygId); @Override FragaSvar saveSvar(Long fragaSvarsId, String svarsText); @Override List<FragaSvarView> answerKomplettering(final String intygsId, final String svarsText); @Override FragaSvar saveNewQuestion(String intygId, String typ, Amne amne, String frageText); @Override List<FragaSvar> setVidareBefordrad(final String intygsId); @Override FragaSvar closeQuestionAsHandled(Long frageSvarId); @Override void closeCompletionsAsHandled(String intygId); @Override void closeAllNonClosedQuestions(String intygsId); @Override FragaSvar openQuestionAsUnhandled(Long frageSvarId); @Override @Transactional(readOnly = true) QueryFragaSvarResponse filterFragaSvar(Filter filter); @Override @Transactional(readOnly = true) List<Lakare> getFragaSvarHsaIdByEnhet(String enhetsId); @Override Map<String, Long> getNbrOfUnhandledFragaSvarForCareUnits(List<String> vardenheterIds, Set<String> intygsTyper);  }