From 507ea9bedfb0e325662293cf490a170cc9a8da4f Mon Sep 17 00:00:00 2001 From: James Agnew Date: Wed, 1 Oct 2014 16:27:47 -0400 Subject: [PATCH] One more windows unit test break --- .../test/java/ca/uhn/fhir/rest/server/IncludeTest.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-base/src/test/java/ca/uhn/fhir/rest/server/IncludeTest.java b/hapi-fhir-base/src/test/java/ca/uhn/fhir/rest/server/IncludeTest.java index c2d32b4d800..16313d6ee43 100644 --- a/hapi-fhir-base/src/test/java/ca/uhn/fhir/rest/server/IncludeTest.java +++ b/hapi-fhir-base/src/test/java/ca/uhn/fhir/rest/server/IncludeTest.java @@ -1,9 +1,11 @@ package ca.uhn.fhir.rest.server; +import static org.hamcrest.Matchers.containsInAnyOrder; import static org.junit.Assert.*; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.concurrent.TimeUnit; @@ -205,8 +207,12 @@ public class IncludeTest { Patient p = bundle.getResources(Patient.class).get(0); assertEquals(2, p.getName().size()); assertEquals("Hello", p.getId().getIdPart()); - assertEquals("foo", p.getName().get(0).getFamilyFirstRep().getValue()); - assertEquals("bar", p.getName().get(1).getFamilyFirstRep().getValue()); + + Set values = new HashSet(); + values.add( p.getName().get(0).getFamilyFirstRep().getValue()); + values.add( p.getName().get(1).getFamilyFirstRep().getValue()); + assertThat(values, containsInAnyOrder("foo", "bar")); + } @Test