diff --git a/hl7templates/goc-tests/goc-tests-runner/src/test/java/net/ihe/gazelle/goctests/SpecificConfTest.java b/hl7templates/goc-tests/goc-tests-runner/src/test/java/net/ihe/gazelle/goctests/SpecificConfTest.java index 2161d8d31df9318c13ed081b2565383b7ebe7a5f..7ffdbf8870ae3e1b64b1c9ad97a7a57a08c84ded 100644 --- a/hl7templates/goc-tests/goc-tests-runner/src/test/java/net/ihe/gazelle/goctests/SpecificConfTest.java +++ b/hl7templates/goc-tests/goc-tests-runner/src/test/java/net/ihe/gazelle/goctests/SpecificConfTest.java @@ -10,10 +10,12 @@ import net.ihe.gazelle.goctests.interlay.exceptions.ResultTransformationExceptio import net.ihe.gazelle.goctests.interlay.exceptions.SpecificationException; import org.junit.Test; +import static org.junit.Assert.assertTrue; + public class SpecificConfTest { @Test - public void test() throws ReportGenerationException, TestRunnerException, + public void cardinalityTest() throws ReportGenerationException, TestRunnerException, SpecificationException, EnvironementException, ResultTransformationException { System.setProperty("hl7Conf", "cdaxehealth"); @@ -23,4 +25,77 @@ public class SpecificConfTest { System.out.println(testResult); } + + @Test + public void mandatoryTest() throws ReportGenerationException, TestRunnerException, + SpecificationException, EnvironementException, ResultTransformationException { + + System.setProperty("hl7Conf", "cdaxehealth"); + + SystemTestExecutor executor = new SystemTestExecutor(SpecificationType.MANDATORY); + TestResult testResult = executor.execute(); + + System.out.println(testResult); + } + + @Test + public void datatypeTest() throws ReportGenerationException, TestRunnerException, + SpecificationException, EnvironementException, ResultTransformationException { + + System.setProperty("hl7Conf", "cdaxehealth"); + + SystemTestExecutor executor = new SystemTestExecutor(SpecificationType.DATATYPE); + TestResult testResult = executor.execute(); + + System.out.println(testResult); + } + + @Test + public void contestTest() throws ReportGenerationException, TestRunnerException, + SpecificationException, EnvironementException, ResultTransformationException { + + System.setProperty("hl7Conf", "cdaxehealth"); + + SystemTestExecutor executor = new SystemTestExecutor(SpecificationType.CONTEXT); + TestResult testResult = executor.execute(); + + System.out.println(testResult); + } + + @Test + public void fixedValueTest() throws ReportGenerationException, TestRunnerException, + SpecificationException, EnvironementException, ResultTransformationException { + + System.setProperty("hl7Conf", "cdaxehealth"); + + SystemTestExecutor executor = new SystemTestExecutor(SpecificationType.FIXEDVAL); + TestResult testResult = executor.execute(); + + System.out.println(testResult); + } + + @Test + public void testChoice() throws ReportGenerationException, TestRunnerException, + SpecificationException, EnvironementException, ResultTransformationException { + + System.setProperty("hl7Conf", "cdaxehealth"); + + SystemTestExecutor executor = new SystemTestExecutor(SpecificationType.CHOICE); + TestResult testResult = executor.execute(); + + System.out.println(testResult); + } + + @Test + public void testGlobal() throws ReportGenerationException, TestRunnerException, + SpecificationException, EnvironementException, ResultTransformationException { + + System.setProperty("hl7Conf", "cdaxehealth"); + + SystemTestExecutor executor = new SystemTestExecutor(SpecificationType.GLOBAL); + TestResult testResult = executor.execute(); + + System.out.println(testResult); + } + }