use of se.inera.intyg.webcert.web.integration.validators.ResultValidator in project webcert by sklintyg.
the class CreateDraftCertificateValidatorImplTest method testValidateHoSPersonalFullstandigtnamnMissing.
@Test
public void testValidateHoSPersonalFullstandigtnamnMissing() {
ResultValidator result = validator.validate(buildIntyg(LUSE, "efternamn", "fornamn", null, "enhetsnamn", true));
assertTrue(result.hasErrors());
}
use of se.inera.intyg.webcert.web.integration.validators.ResultValidator in project webcert by sklintyg.
the class CreateDraftCertificateValidatorImplTest method testValidatePatientSamordningsnummerOk.
@Test
public void testValidatePatientSamordningsnummerOk() {
ResultValidator result = validator.validate(buildIntyg(LUSE, "efternamn", "förnamn", "19800191-0002", "fullständigt namn", "hosHsaId", "enhetsnamn", "enhetHsaId", true));
assertFalse(result.hasErrors());
}
use of se.inera.intyg.webcert.web.integration.validators.ResultValidator in project webcert by sklintyg.
the class CreateDraftCertificateValidatorImplTest method testValidatePatientPersonIdExtensionMissing.
@Test
public void testValidatePatientPersonIdExtensionMissing() {
ResultValidator result = validator.validate(buildIntyg(LUSE, "efternamn", "förnamn", "", "fullständigt namn", "hosHsaId", "enhetsnamn", "enhetHsaId", true));
assertTrue(result.hasErrors());
}
use of se.inera.intyg.webcert.web.integration.validators.ResultValidator in project webcert by sklintyg.
the class CreateDraftCertificateValidatorImplTest method testValidatePatientInvalidPersonnummer.
@Test
public void testValidatePatientInvalidPersonnummer() {
ResultValidator result = validator.validate(buildIntyg(LUSE, "efternamn", "förnamn", "19010101-0101", "fullständigt namn", "hosHsaId", "enhetsnamn", "enhetHsaId", true));
assertTrue(result.hasErrors());
}
use of se.inera.intyg.webcert.web.integration.validators.ResultValidator in project webcert by sklintyg.
the class CreateDraftCertificateValidatorImplTest method testValidatePatientPersonnummerOk.
@Test
public void testValidatePatientPersonnummerOk() {
ResultValidator result = validator.validate(buildIntyg(LUSE, "efternamn", "förnamn", "19121212-1212", "fullständigt namn", "hosHsaId", "enhetsnamn", "enhetHsaId", true));
assertFalse(result.hasErrors());
}
Aggregations