Fix tests
This commit is contained in:
parent
773608f860
commit
68cc2f0cfe
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue