Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rehammuzzamil committed Jun 22, 2020
1 parent 7a513bc commit d956e03
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ public void testConvertEventToQuestionnaireResponseWithMultipleValuesOfObs() {
node = PathEvaluatorLibrary.getInstance().evaluateElementExpression(questionnaireResponse, "QuestionnaireResponse.item.where(linkId='existingLLINs')");

QuestionnaireResponse.Item existingLLINs = node.element().as(QuestionnaireResponse.Item.class);
assertEquals(2, existingLLINs.getAnswer().size()); //Test for multiple values
assertEquals(0,existingLLINs.getAnswer().get(0).getValue());
assertEquals(1,existingLLINs.getAnswer().get(1).getValue());
assertEquals(2, existingLLINs.getAnswer().get(0).getExtension().size()); //Test for multiple values
assertEquals(String.valueOf(0),existingLLINs.getAnswer().get(0).getExtension().get(0).getValue().as(com.ibm.fhir.model.type.String.class).getValue());
assertEquals(String.valueOf(1),existingLLINs.getAnswer().get(0).getExtension().get(1).getValue().as(com.ibm.fhir.model.type.String.class).getValue());

System.out.println(questionnaireResponse);
}
Expand Down

0 comments on commit d956e03

Please sign in to comment.