Skip to content

Commit

Permalink
Finalize 1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesagnew committed May 8, 2015
1 parent e745094 commit eeba581
Show file tree
Hide file tree
Showing 20 changed files with 813 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ public void translateClientArgumentIntoQueryArgument(FhirContext theContext, Obj
@Override
public Object translateQueryParametersIntoServerArgument(Request theRequest, Object theRequestContents) throws InternalErrorException, InvalidRequestException {

EncodingEnum encoding = RestfulServerUtils.determineResponseEncodingWithDefault(theRequest.getServer(), theRequest.getServletRequest());
// TODO: don't use a default encoding, just fail!
EncodingEnum encoding = RestfulServerUtils.determineRequestEncoding(theRequest);

IParser parser = encoding.newParser(myContext);

BufferedReader reader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ public void testTransactionFromBundle() throws Exception {
ourLog.info(response);
}

// TODO: enable!
// @Test
public void testTransactionFromBundle3() throws Exception {

InputStream bundleRes = SystemProviderTest.class.getResourceAsStream("/grahame-transaction.xml");
String bundle = IOUtils.toString(bundleRes);
String response = ourClient.transaction().withBundle(bundle).prettyPrint().execute();
ourLog.info(response);
}

@Test
public void testTransactionFromBundle2() throws Exception {

Expand Down
Loading

0 comments on commit eeba581

Please sign in to comment.