use of se.inera.ifv.insuranceprocess.healthreporting.receivemedicalcertificatequestionsponder.v1.ReceiveMedicalCertificateQuestionType in project webcert by sklintyg.
the class QuestionAnswerValidatorTest method testQVCatchesMissingFraga.
@Test
public void testQVCatchesMissingFraga() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().setFraga(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 testQVCatchesMissingAmne.
@Test
public void testQVCatchesMissingAmne() {
// Arrange
ReceiveMedicalCertificateQuestionType request = createValidQuestionRequest();
request.getQuestion().setAmne(null);
// Act
final List<String> result = QuestionAnswerValidator.validate(request);
// Assert
assertEquals(1, result.size());
}
Aggregations