Added another test case to reproduce the original issue
This commit is contained in:
parent
7f79342447
commit
7e68583e21
|
@ -1,7 +1,5 @@
|
||||||
package org.hl7.fhir.dstu3.test;
|
package org.hl7.fhir.dstu3.test;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import org.hl7.fhir.dstu3.formats.JsonParser;
|
import org.hl7.fhir.dstu3.formats.JsonParser;
|
||||||
|
@ -13,8 +11,17 @@ import org.junit.jupiter.api.Test;
|
||||||
class JsonParserTestCase {
|
class JsonParserTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void test() throws FHIRFormatError, IOException {
|
void testParseJsonNull() throws FHIRFormatError, IOException {
|
||||||
Resource r = new JsonParser().parse(TestingUtilities.loadTestResourceStream("r3", "activitydefinition-referralprimarycarementalhealth.json"));
|
Resource r = new JsonParser().parse(TestingUtilities.loadTestResourceStream("r3", "activitydefinition-referralprimarycarementalhealth.json"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testComposeAndParseWithOriginal() throws FHIRFormatError, IOException {
|
||||||
|
JsonParser jsonParser = new JsonParser();
|
||||||
|
Resource resource = jsonParser.parse(TestingUtilities.loadTestResourceStream("r3",
|
||||||
|
"activitydefinition-referralprimarycarementalhealth-original.json"));
|
||||||
|
String composed = jsonParser.composeString(resource);
|
||||||
|
jsonParser.parse(composed);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue