Mentions légales du service

Skip to content
Snippets Groups Projects
Commit db11684e authored by AAZIBOU EL GERRAB Nabila's avatar AAZIBOU EL GERRAB Nabila
Browse files

add SpecficConfTest for system testing

parent c0672832
No related branches found
No related tags found
2 merge requests!52release 3.2.0,!51release 3.2.0
...@@ -10,10 +10,12 @@ import net.ihe.gazelle.goctests.interlay.exceptions.ResultTransformationExceptio ...@@ -10,10 +10,12 @@ import net.ihe.gazelle.goctests.interlay.exceptions.ResultTransformationExceptio
import net.ihe.gazelle.goctests.interlay.exceptions.SpecificationException; import net.ihe.gazelle.goctests.interlay.exceptions.SpecificationException;
import org.junit.Test; import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class SpecificConfTest { public class SpecificConfTest {
@Test @Test
public void test() throws ReportGenerationException, TestRunnerException, public void cardinalityTest() throws ReportGenerationException, TestRunnerException,
SpecificationException, EnvironementException, ResultTransformationException { SpecificationException, EnvironementException, ResultTransformationException {
System.setProperty("hl7Conf", "cdaxehealth"); System.setProperty("hl7Conf", "cdaxehealth");
...@@ -23,4 +25,77 @@ public class SpecificConfTest { ...@@ -23,4 +25,77 @@ public class SpecificConfTest {
System.out.println(testResult); 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);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment