From e7dda532c6b7c3ead5894aa78c143fbb1701cb23 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Mon, 16 Nov 2015 14:00:35 +0100 Subject: [PATCH] Tests are failing on Travis but not locally... Argh --- hapi-fhir-structures-hl7org-dstu2/pom.xml | 2 +- .../fhir/validation/FhirInstanceValidatorTest.java | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/hapi-fhir-structures-hl7org-dstu2/pom.xml b/hapi-fhir-structures-hl7org-dstu2/pom.xml index 9757ee0c512..a23d0aae4b5 100644 --- a/hapi-fhir-structures-hl7org-dstu2/pom.xml +++ b/hapi-fhir-structures-hl7org-dstu2/pom.xml @@ -180,7 +180,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.19 + 2.18.1 false random diff --git a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/validation/FhirInstanceValidatorTest.java b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/validation/FhirInstanceValidatorTest.java index c1f32fda24e..4ecbc5bcee8 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/validation/FhirInstanceValidatorTest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/validation/FhirInstanceValidatorTest.java @@ -26,7 +26,11 @@ import org.hl7.fhir.instance.model.ValueSet.ConceptSetComponent; import org.hl7.fhir.instance.model.ValueSet.ValueSetExpansionComponent; import org.hl7.fhir.instance.model.api.IBaseResource; import org.junit.Before; +import org.junit.Rule; import org.junit.Test; +import org.junit.rules.TestRule; +import org.junit.rules.TestWatcher; +import org.junit.runner.Description; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; @@ -157,6 +161,13 @@ public class FhirInstanceValidatorTest { return retVal; } + @Rule + public TestRule watcher = new TestWatcher() { + protected void starting(Description description) { + ourLog.info("Starting test: " + description.getMethodName()); + } + }; + @Test public void testValidateRawJsonResource() { // @formatter:off