Tests are failing on Travis but not locally... Argh

This commit is contained in:
James Agnew 2015-11-16 14:00:35 +01:00
parent 18f7e958d2
commit e7dda532c6
2 changed files with 12 additions and 1 deletions

View File

@ -180,7 +180,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19</version>
<version>2.18.1</version>
<configuration>
<redirectTestOutputToFile>false</redirectTestOutputToFile>
<runOrder>random</runOrder>

View File

@ -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