Fix #214 - more failing bundle stuff

This commit is contained in:
de Beaubien, Bill 2015-09-01 13:40:32 -04:00
parent bac4c4a2e9
commit b6f6340eb9
1 changed files with 8 additions and 2 deletions

View File

@ -1060,13 +1060,21 @@ public class JsonParserTest {
} }
@Ignore
@Test @Test
public void testTotalResultsInJsonBundle() { public void testTotalResultsInJsonBundle() {
String json = String json =
"{" + "{" +
" \"resourceType\" : \"Bundle\"," + " \"resourceType\" : \"Bundle\"," +
" \"title\" : \"FHIR Atom Feed\"," +
" \"id\" : \"cb095f55-afb0-41e8-89d5-155259b2a032\"," + " \"id\" : \"cb095f55-afb0-41e8-89d5-155259b2a032\"," +
" \"updated\" : \"2015-09-01T08:52:02.793-04:00\"," + " \"updated\" : \"2015-09-01T08:52:02.793-04:00\"," +
" \"author\": [" +
" {" +
" \"name\": \"author-name\", " +
" \"uri\": \"uri\" " +
" }" +
" ]," +
" \"link\" : [{" + " \"link\" : [{" +
" \"rel\" : \"self\"," + " \"rel\" : \"self\"," +
" \"href\" : \"http://fhirtest.uhn.ca/baseDstu1/Patient/_search?family=Perez\"" + " \"href\" : \"http://fhirtest.uhn.ca/baseDstu1/Patient/_search?family=Perez\"" +
@ -1107,8 +1115,6 @@ public class JsonParserTest {
IParser jsonParser = ourCtx.newJsonParser(); IParser jsonParser = ourCtx.newJsonParser();
Bundle bundle = jsonParser.parseBundle(json); Bundle bundle = jsonParser.parseBundle(json);
System.out.println("Done");
} }
@Test @Test