Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fil512 committed May 22, 2024
1 parent 1121360 commit 993346c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ public void testEncodeExtensionFromDifferentVersion() {
String str;
str = ourCtxDstu2.newXmlParser().encodeResourceToString(p);
ourLog.info(str);
assertThat(str).matches("<extension url=\"http://foo#ext\"><valueQuantity><value value=\"2.2\".*<comparator value=\"&lt;\".*<unit value=\"g/L\".*</valueQuantity></extension>");
assertThat(str).containsSubsequence("<extension url=\"http://foo#ext\"><valueQuantity><value value=\"2.2\"",
"<comparator value=\"&lt;\"",
"<unit value=\"g/L\"",
"</valueQuantity></extension>");

try {
FhirContext.forDstu3().newXmlParser().encodeResourceToString(p);
Expand Down

0 comments on commit 993346c

Please sign in to comment.