Add test for setVsAsUrl parameter setting (#1345)
This commit is contained in:
parent
eef3ebc5f1
commit
6598c1d28e
|
@ -95,6 +95,15 @@ public class BaseWorkerContextTests {
|
|||
assertEquals("lenient-display-validation", pin.getParameter("mode").getValue().primitiveValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAddServerValidationParametersVsAsUrl() throws IOException {
|
||||
BaseWorkerContext baseWorkerContext = getBaseWorkerContext();
|
||||
Parameters pin = new Parameters();
|
||||
baseWorkerContext.addServerValidationParameters(new ValueSet().setUrl("http://dummy.org/vs"), pin, new ValidationOptions().setVsAsUrl(true));
|
||||
assertEquals("uri", pin.getParameter("url").getValue().fhirType());
|
||||
assertEquals("http://dummy.org/vs", pin.getParameter("url").getValue().primitiveValue());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAddServerValidationParametersDisplayError() throws IOException {
|
||||
BaseWorkerContext baseWorkerContext = getBaseWorkerContext();
|
||||
|
|
Loading…
Reference in New Issue