\r
import junit.framework.TestCase;\r
\r
-import org.springframework.context.ApplicationContext;\r
-\r
import org.apache.commons.logging.Log;\r
import org.apache.commons.logging.LogFactory;\r
import org.apache.tools.ant.Project;\r
-\r
import org.argeo.slc.ant.AntRegistryUtil;\r
-import org.argeo.slc.ant.SlcProjectHelper;\r
-import org.argeo.slc.core.test.NumericTRId;\r
+import org.argeo.slc.ant.SlcAntConstants;\r
import org.argeo.slc.core.test.TestStatus;\r
import org.argeo.slc.core.test.tree.TreeTestResult;\r
import org.argeo.slc.dao.test.TestResultDao;\r
import org.argeo.slc.unit.test.tree.UnitTestTreeUtil;\r
+import org.springframework.context.ApplicationContext;\r
\r
public class ContextIntegrationTest extends TestCase {\r
private static Log log = LogFactory.getLog(ContextIntegrationTest.class);\r
TestResultDao<TreeTestResult> testResultDao = runAnt(\r
"root/Context/build.xml", null);\r
\r
- NumericTRId numericTRId = new NumericTRId();\r
- numericTRId.setValue(1l);\r
TreeTestResult testResult1 = (TreeTestResult) testResultDao\r
- .getTestResult(numericTRId);\r
+ .getTestResult("1");\r
\r
String basePath = "/root/Context/testContext/";\r
UnitTestTreeUtil.assertPart(testResult1, basePath\r
UnitTestTreeUtil.assertPart(testResult1, basePath\r
+ "slc.test1/reference2", 0, TestStatus.PASSED,\r
"Values matched for key 'reference2'");\r
- UnitTestTreeUtil.assertPart(testResult1, basePath\r
- + "slc.test1/var", 0, TestStatus.PASSED,\r
- "Values matched for key 'var'");\r
+ UnitTestTreeUtil.assertPart(testResult1, basePath + "slc.test1/var", 0,\r
+ TestStatus.PASSED, "Values matched for key 'var'");\r
UnitTestTreeUtil.assertPart(testResult1, basePath\r
+ "slc.test1/varIntern", 0, TestStatus.PASSED,\r
"Values matched for key 'varIntern'");\r
TestResultDao<TreeTestResult> testResultDao = runAnt(\r
"root/Context/build.xml", "testBaseContext");\r
\r
- NumericTRId numericTRId = new NumericTRId();\r
- numericTRId.setValue(1l);\r
TreeTestResult testResult1 = (TreeTestResult) testResultDao\r
- .getTestResult(numericTRId);\r
+ .getTestResult("1");\r
\r
String basePath = "/root/Context/testBaseContext/";\r
UnitTestTreeUtil.assertPart(testResult1, basePath\r
Project p = AntRegistryUtil.runAll(antFile, target);\r
\r
ApplicationContext context = (ApplicationContext) p\r
- .getReference(SlcProjectHelper.REF_ROOT_CONTEXT);\r
+ .getReference(SlcAntConstants.REF_ROOT_CONTEXT);\r
\r
TestResultDao<TreeTestResult> testResultDao = (TestResultDao<TreeTestResult>) context\r
.getBean("testResultDao");\r