private static Log log = LogFactory.getLog(ExampleIntegrationTest.class);\r
\r
/** Tests an end-to-end Ant run. */\r
- public void testAllRunSimple() {\r
- String slcBase = System.getProperty("it.slc.base","exampleSlcAppli");\r
- File slcBaseDir = new File(slcBase).getAbsoluteFile();\r
+ public void testAllRunSimple() throws Exception {\r
+ String slcBase = System.getProperty("it.slc.base", "exampleSlcAppli");\r
+ File slcBaseDir = new File(slcBase).getCanonicalFile();\r
log.info("SLC base: " + slcBaseDir);\r
\r
String reportDirPath = slcBaseDir.getPath() + "/work/results/report/";\r
"/root/Category1/SubCategory2/testError/slc.test0", 0,\r
TestStatus.ERROR, "Execute example appli");\r
\r
+ // Context\r
+ assertPart(testResult1,\r
+ "/root/Category1/SubCategory2/testContext/slc.test1/reference",\r
+ 0, TestStatus.PASSED, "Values matched for key 'reference'");\r
+ assertPart(testResult1,\r
+ "/root/Category1/SubCategory2/testContext/slc.test1/varIntern",\r
+ 0, TestStatus.PASSED, "Values matched for key 'varIntern'");\r
+ assertPart(testResult1,\r
+ "/root/Category1/SubCategory2/testContext/slc.test1/varExtern",\r
+ 0, TestStatus.PASSED, "Values matched for key 'varExtern'");\r
+\r
numericTRId.setValue(2l);\r
TreeTestResult testResult2 = (TreeTestResult) testResultDao\r
.getTestResult(numericTRId);\r