Fix tests

This commit is contained in:
jamesagnew 2015-09-04 09:00:55 -04:00
parent 773608f860
commit 68cc2f0cfe
2 changed files with 5 additions and 2 deletions

View File

@ -1,11 +1,11 @@
package ca.uhn.fhir.validation;
import static org.junit.Assert.*;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.validation.FhirValidator;
import ca.uhn.fhir.model.dstu.resource.Patient;
public class ValidatorInstantiatorTest {
private static FhirContext ourCtx = FhirContext.forDstu1();
@ -14,6 +14,7 @@ public class ValidatorInstantiatorTest {
public void testValidator() {
FhirValidator val = ourCtx.newValidator();
val.validateWithResult(new Patient());
// We have a full classpath, so take advantage
assertTrue(val.isValidateAgainstStandardSchema());

View File

@ -5,6 +5,7 @@ import static org.junit.Assert.assertTrue;
import org.junit.Test;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.model.dstu2.resource.Patient;
public class ValidatorInstantiatorDstu2Test {
@ -13,6 +14,7 @@ public class ValidatorInstantiatorDstu2Test {
public void testValidator() {
FhirValidator val = ourCtx.newValidator();
val.validateWithResult(new Patient());
// We have a full classpath, so take advantage
assertTrue(val.isValidateAgainstStandardSchema());