Skip to content

Commit

Permalink
Issue #2513 - fix test failures
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
  • Loading branch information
michaelwschroeder committed Nov 8, 2021
1 parent 246ad98 commit 6649a77
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public void loadBundle1() throws Exception {
Meta meta = Meta.builder().versionId(Id.of("" + System.currentTimeMillis())).build();
entry.getResource().toBuilder().meta(meta).build();

Bundle.Entry tmpEntry = entry.toBuilder().request(request).build();
Bundle.Entry tmpEntry = entry.toBuilder().request(request).search(null).build();
output.add(tmpEntry);
}
bundle = bundle.toBuilder().type(BundleType.BATCH).entry(output).build();
bundle = bundle.toBuilder().type(BundleType.BATCH).entry(output).total(null).build();

Entity<Bundle> entity = Entity.entity(bundle, FHIRMediaType.APPLICATION_FHIR_JSON);
Response response = target.request().header(PREFER_HEADER_NAME, PREFER_HEADER_RETURN_REPRESENTATION).post(entity, Response.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public void loadResources() throws Exception {
Meta meta = Meta.builder().versionId(Id.of("" + System.currentTimeMillis())).build();
entry.getResource().toBuilder().meta(meta).build();

Bundle.Entry tmpEntry = entry.toBuilder().request(request).build();
Bundle.Entry tmpEntry = entry.toBuilder().request(request).search(null).build();
output.add(tmpEntry);
}
bundle = bundle.toBuilder().type(BundleType.BATCH).entry(output).build();
bundle = bundle.toBuilder().type(BundleType.BATCH).entry(output).total(null).build();

Entity<Bundle> entity = Entity.entity(bundle, FHIRMediaType.APPLICATION_FHIR_JSON);
Response response = target.request().header(PREFER_HEADER_NAME, PREFER_HEADER_RETURN_REPRESENTATION).post(entity, Response.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public void loadBundle1() throws Exception {
Meta meta = Meta.builder().versionId(Id.of("" + System.currentTimeMillis())).build();
entry.getResource().toBuilder().meta(meta).build();

Bundle.Entry tmpEntry = entry.toBuilder().request(request).build();
Bundle.Entry tmpEntry = entry.toBuilder().request(request).search(null).build();
output.add(tmpEntry);
}
bundle = bundle.toBuilder().type(BundleType.BATCH).entry(output).build();
bundle = bundle.toBuilder().type(BundleType.BATCH).entry(output).total(null).build();

Entity<Bundle> entity = Entity.entity(bundle, FHIRMediaType.APPLICATION_FHIR_JSON);
Response response = target.request().header(PREFER_HEADER_NAME, PREFER_HEADER_RETURN_REPRESENTATION).post(entity, Response.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public void loadResources() throws Exception {
Meta meta = Meta.builder().versionId(Id.of("" + System.currentTimeMillis())).build();
entry.getResource().toBuilder().meta(meta).build();

Bundle.Entry tmpEntry = entry.toBuilder().request(request).build();
Bundle.Entry tmpEntry = entry.toBuilder().request(request).search(null).build();
output.add(tmpEntry);
}
bundle = bundle.toBuilder().type(BundleType.BATCH).entry(output).build();
bundle = bundle.toBuilder().type(BundleType.BATCH).entry(output).total(null).build();

Entity<Bundle> entity = Entity.entity(bundle, FHIRMediaType.APPLICATION_FHIR_JSON);
Response response = target.request().header(PREFER_HEADER_NAME, PREFER_HEADER_RETURN_REPRESENTATION).post(entity, Response.class);
Expand Down

0 comments on commit 6649a77

Please sign in to comment.