@Test public void testValidatePatientPersonIdMissing() { ResultValidator result = validator .validate(buildIntyg(LUSE, "efternamn", "förnamn", "fullständigt namn", "enhetsId", "enhetsnamn", true, null)); assertTrue(result.hasErrors()); }
@Override public ResultValidator validate(Intyg intyg) { ResultValidator errors = ResultValidator.newInstance(); validateTypAvIntyg(errors, intyg.getTypAvIntyg()); validatePatient(errors, intyg.getPatient()); validateSkapadAv(errors, intyg.getSkapadAv()); return errors; }
CreateDraftCertificateValidatorImpl extends BaseCreateDraftCertificateValidator implements CreateDraftCertificateValidator { @Override public ResultValidator validate(Intyg intyg) { ResultValidator errors = ResultValidator.newInstance(); validateTypAvIntyg(errors, intyg.getTypAvIntyg()); validatePatient(errors, intyg.getPatient()); validateSkapadAv(errors, intyg.getSkapadAv()); return errors; } }
CreateDraftCertificateValidatorImpl extends BaseCreateDraftCertificateValidator implements CreateDraftCertificateValidator { @Override public ResultValidator validate(Intyg intyg) { ResultValidator errors = ResultValidator.newInstance(); validateTypAvIntyg(errors, intyg.getTypAvIntyg()); validatePatient(errors, intyg.getPatient()); validateSkapadAv(errors, intyg.getSkapadAv()); return errors; }  }
CreateDraftCertificateValidatorImpl extends BaseCreateDraftCertificateValidator implements CreateDraftCertificateValidator { @Override public ResultValidator validate(Intyg intyg) { ResultValidator errors = ResultValidator.newInstance(); validateTypAvIntyg(errors, intyg.getTypAvIntyg()); validatePatient(errors, intyg.getPatient()); validateSkapadAv(errors, intyg.getSkapadAv()); return errors; }  @Override ResultValidator validate(Intyg intyg); @Override ResultValidator validateApplicationErrors(Intyg intyg, IntygUser user); }
CreateDraftCertificateValidatorImpl extends BaseCreateDraftCertificateValidator implements CreateDraftCertificateValidator { @Override public ResultValidator validate(Intyg intyg) { ResultValidator errors = ResultValidator.newInstance(); validateTypAvIntyg(errors, intyg.getTypAvIntyg()); validatePatient(errors, intyg.getPatient()); validateSkapadAv(errors, intyg.getSkapadAv()); return errors; }  @Override ResultValidator validate(Intyg intyg); @Override ResultValidator validateApplicationErrors(Intyg intyg, IntygUser user);  }