use of se.inera.ifv.insuranceprocess.healthreporting.receivemedicalcertificatequestionsponder.v1.ReceiveMedicalCertificateQuestionType in project webcert by sklintyg.
the class QuestionAnswerValidatorTest method testQVCatchesMissingVardgivarNamn.
@Test
public void testQVCatchesMissingVardgivarNamn() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().getAdressVard().getHosPersonal().getEnhet().getVardgivare().setVardgivarnamn(null);
// Act
final List<String> result = QuestionAnswerValidator.validate(request);
// Assert
assertEquals(1, result.size());
}
use of se.inera.ifv.insuranceprocess.healthreporting.receivemedicalcertificatequestionsponder.v1.ReceiveMedicalCertificateQuestionType in project webcert by sklintyg.
the class QuestionAnswerValidatorTest method testQVCatchesMissingPatientPersonIdExtension.
@Test
public void testQVCatchesMissingPatientPersonIdExtension() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().getLakarutlatande().getPatient().getPersonId().setExtension(null);
// Act
final List<String> result = QuestionAnswerValidator.validate(request);
// Assert
assertEquals(1, result.size());
}
use of se.inera.ifv.insuranceprocess.healthreporting.receivemedicalcertificatequestionsponder.v1.ReceiveMedicalCertificateQuestionType in project webcert by sklintyg.
the class QuestionAnswerValidatorTest method testQVCatchesInvalidVardgivarIdRoot.
@Test
public void testQVCatchesInvalidVardgivarIdRoot() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().getAdressVard().getHosPersonal().getEnhet().getVardgivare().getVardgivareId().setRoot("INVALID");
// Act
final List<String> result = QuestionAnswerValidator.validate(request);
// Assert
assertEquals(1, result.size());
}
use of se.inera.ifv.insuranceprocess.healthreporting.receivemedicalcertificatequestionsponder.v1.ReceiveMedicalCertificateQuestionType in project webcert by sklintyg.
the class QuestionAnswerValidatorTest method testQVCatchesMissingHsaPersonFullstandigtNamn.
@Test
public void testQVCatchesMissingHsaPersonFullstandigtNamn() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().getAdressVard().getHosPersonal().setFullstandigtNamn(null);
// Act
final List<String> result = QuestionAnswerValidator.validate(request);
// Assert
assertEquals(1, result.size());
}
use of se.inera.ifv.insuranceprocess.healthreporting.receivemedicalcertificatequestionsponder.v1.ReceiveMedicalCertificateQuestionType in project webcert by sklintyg.
the class QuestionAnswerValidatorTest method testQVCatchesInvalidHsaEnhetIdRoot.
@Test
public void testQVCatchesInvalidHsaEnhetIdRoot() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().getAdressVard().getHosPersonal().getEnhet().getEnhetsId().setRoot("INVALID");
// Act
final List<String> result = QuestionAnswerValidator.validate(request);
// Assert
assertEquals(1, result.size());
}
Aggregations