@Test public void testGetFmbForIcd10IsReturningCorrectIcdCode() throws Exception { final String icd10 = "asdf"; final DiagnosInformation diagnosInformation = createDiagnosInformation("test1", "test2", icd10); doReturn(Optional.of(diagnosInformation)) .when(diagnosInformationRepository) .findFirstByIcd10KodList_kod(anyString()); final Optional<FmbResponse> response = diagnosInformationService.findFmbDiagnosInformationByIcd10Kod(icd10); assertEquals(icd10.toUpperCase(), response.get().getIcd10Code()); }
@Override @Transactional(readOnly = true) public Optional<FmbResponse> findFmbDiagnosInformationByIcd10Kod(final String icd10Kod) { Preconditions.checkArgument(Objects.nonNull(icd10Kod)); return getFmbContent(icd10Kod); }
FmbDiagnosInformationServiceImpl extends FmbBaseService implements FmbDiagnosInformationService { @Override @Transactional(readOnly = true) public Optional<FmbResponse> findFmbDiagnosInformationByIcd10Kod(final String icd10Kod) { Preconditions.checkArgument(Objects.nonNull(icd10Kod)); return getFmbContent(icd10Kod); } }
FmbDiagnosInformationServiceImpl extends FmbBaseService implements FmbDiagnosInformationService { @Override @Transactional(readOnly = true) public Optional<FmbResponse> findFmbDiagnosInformationByIcd10Kod(final String icd10Kod) { Preconditions.checkArgument(Objects.nonNull(icd10Kod)); return getFmbContent(icd10Kod); } FmbDiagnosInformationServiceImpl(
        final DiagnosService diagnosService,
        final FmbSjukfallService sjukfallService,
        final DiagnosInformationRepository repository); }
FmbDiagnosInformationServiceImpl extends FmbBaseService implements FmbDiagnosInformationService { @Override @Transactional(readOnly = true) public Optional<FmbResponse> findFmbDiagnosInformationByIcd10Kod(final String icd10Kod) { Preconditions.checkArgument(Objects.nonNull(icd10Kod)); return getFmbContent(icd10Kod); } FmbDiagnosInformationServiceImpl(
        final DiagnosService diagnosService,
        final FmbSjukfallService sjukfallService,
        final DiagnosInformationRepository repository); @Override @Transactional(readOnly = true) Optional<FmbResponse> findFmbDiagnosInformationByIcd10Kod(final String icd10Kod); @Override MaximalSjukskrivningstidResponse validateSjukskrivningtidForPatient(
        final MaximalSjukskrivningstidRequest maximalSjukskrivningstidRequest); }
FmbDiagnosInformationServiceImpl extends FmbBaseService implements FmbDiagnosInformationService { @Override @Transactional(readOnly = true) public Optional<FmbResponse> findFmbDiagnosInformationByIcd10Kod(final String icd10Kod) { Preconditions.checkArgument(Objects.nonNull(icd10Kod)); return getFmbContent(icd10Kod); } FmbDiagnosInformationServiceImpl(
        final DiagnosService diagnosService,
        final FmbSjukfallService sjukfallService,
        final DiagnosInformationRepository repository); @Override @Transactional(readOnly = true) Optional<FmbResponse> findFmbDiagnosInformationByIcd10Kod(final String icd10Kod); @Override MaximalSjukskrivningstidResponse validateSjukskrivningtidForPatient(
        final MaximalSjukskrivningstidRequest maximalSjukskrivningstidRequest);  }