use of se.inera.ifv.insuranceprocess.healthreporting.receivemedicalcertificatequestionsponder.v1.ReceiveMedicalCertificateQuestionType in project webcert by sklintyg.
the class QuestionAnswerValidatorTest method testQVCatchesMissingHsaEnhetsNamn.
@Test
public void testQVCatchesMissingHsaEnhetsNamn() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().getAdressVard().getHosPersonal().getEnhet().setEnhetsnamn(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 testQVCatchesInvalidPatientPersonIdRoot.
@Test
public void testQVCatchesInvalidPatientPersonIdRoot() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().getLakarutlatande().getPatient().getPersonId().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 testQVCatchesMissingHsaEnhetIdExtension.
@Test
public void testQVCatchesMissingHsaEnhetIdExtension() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().getAdressVard().getHosPersonal().getEnhet().getEnhetsId().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 testQVCatchesMissingLakarutlatandeId.
@Test
public void testQVCatchesMissingLakarutlatandeId() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().getLakarutlatande().setLakarutlatandeId(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 testQVCatchesMissingPatientPersonFullstandigtNamn.
@Test
public void testQVCatchesMissingPatientPersonFullstandigtNamn() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().getLakarutlatande().getPatient().setFullstandigtNamn(null);
// Act
final List<String> result = QuestionAnswerValidator.validate(request);
// Assert
assertEquals(1, result.size());
}
Aggregations