From 3a0f97b6c1b6610105f6cafbf1dd1beaa1cead04 Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Thu, 16 Jun 2016 07:52:36 -0400 Subject: [PATCH] Fix test --- .../java/ca/uhn/fhir/rest/client/GenericClientDstu2Test.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientDstu2Test.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientDstu2Test.java index dafa628292b..91a1413ba4c 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientDstu2Test.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientDstu2Test.java @@ -114,8 +114,8 @@ public class GenericClientDstu2Test { try { client.read(new UriDt("http://example.com/InvalidResource/1")); fail(); - } catch (IllegalArgumentException e) { - assertEquals("Unable to determine the resource type from the given URI: ?aaaa", e.getMessage()); + } catch (DataFormatException e) { + assertEquals("Unknown resource name \"InvalidResource\" (this name is not known in FHIR version \"DSTU2\")", e.getMessage()); } }