diff --git a/hapi-fhir-android/src/test/java/ca/uhn/fhir/android/BuiltJarDstu2IT.java b/hapi-fhir-android/src/test/java/ca/uhn/fhir/android/BuiltJarDstu2IT.java index cc937981fc8..a038a2d56de 100644 --- a/hapi-fhir-android/src/test/java/ca/uhn/fhir/android/BuiltJarDstu2IT.java +++ b/hapi-fhir-android/src/test/java/ca/uhn/fhir/android/BuiltJarDstu2IT.java @@ -72,6 +72,7 @@ public class BuiltJarDstu2IT { * android uses) and see if this passes */ @SuppressWarnings("deprecation") + @Test public void testClient() { FhirContext ctx = FhirContext.forDstu2(); try { diff --git a/hapi-fhir-android/src/test/java/ca/uhn/fhir/android/client/GenericClientDstu3IT.java b/hapi-fhir-android/src/test/java/ca/uhn/fhir/android/client/GenericClientDstu3IT.java index aada3596319..96d535cbf88 100644 --- a/hapi-fhir-android/src/test/java/ca/uhn/fhir/android/client/GenericClientDstu3IT.java +++ b/hapi-fhir-android/src/test/java/ca/uhn/fhir/android/client/GenericClientDstu3IT.java @@ -190,7 +190,7 @@ public class GenericClientDstu3IT { @Test public void testClientFailures() throws Exception { ResponseBody body = mock(ResponseBody.class); - when(body.source()).thenThrow(IllegalStateException.class, RuntimeException.class, Exception.class); + when(body.source()).thenThrow(IllegalStateException.class, RuntimeException.class); myHttpResponse = new Response.Builder() .request(myRequest) @@ -216,12 +216,6 @@ public class GenericClientDstu3IT { assertEquals("java.lang.RuntimeException", e.toString()); } - try { - client.read().resource(Patient.class).withId("1").execute(); - fail(); - } catch (FhirClientConnectionException e) { - assertEquals("java.lang.Exception", e.getMessage()); - } }