diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/ClientMockingTest.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/ClientMockingTest.java index 7c8110d3bf2..28cdd123eb0 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/ClientMockingTest.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/ClientMockingTest.java @@ -27,12 +27,13 @@ public class ClientMockingTest { Bundle retVal = new Bundle(); //@formatter:off - when((Object)client + Object when = client .search() .forResource(eq(Condition.class)) .where(any(ICriterion.class)) .returnBundle((Class)any()) - .execute()) + .execute(); + when((Object)when) .thenReturn(retVal); //@formatter:off