]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.example/src/test/java/org/argeo/slc/example/appli/SubCategory2Test.java
Move example appli to the standard location
[gpl/argeo-slc.git] / org.argeo.slc.example / src / test / java / org / argeo / slc / example / appli / SubCategory2Test.java
index 82e53cf679af0fd5f1e5c3863054769594f862a6..b804b68d8279216a0225e59e17aaf4746fd56efb 100644 (file)
@@ -1,22 +1,15 @@
 package org.argeo.slc.example.appli;
 
+import static org.argeo.slc.unit.test.tree.UnitTestTreeUtil.assertPart;
+
 import org.argeo.slc.ant.AntExecutionContext;
-import org.argeo.slc.cli.DefaultSlcRuntime;
-import org.argeo.slc.cli.SlcMain;
+import org.argeo.slc.ant.unit.SlcAntAppliTestCase;
 import org.argeo.slc.core.test.TestStatus;
 import org.argeo.slc.core.test.tree.TreeTestResult;
-import org.argeo.slc.runtime.SlcExecutionOutput;
-import org.argeo.slc.unit.test.tree.UnitTestTreeUtil;
-
-import static org.argeo.slc.unit.test.tree.UnitTestTreeUtil.assertPart;
-
-import junit.framework.TestCase;
 
-public class SubCategory2Test extends TestCase implements
-               SlcExecutionOutput<AntExecutionContext> {
+public class SubCategory2Test extends SlcAntAppliTestCase {
        public void testSimpleRun() {
-               new DefaultSlcRuntime().executeScript(
-                               "exampleSlcAppli/root/Category1/SubCategory2/build.xml", this);
+               execute("/Category1/SubCategory2/build.xml");
        }
 
        public void postExecution(AntExecutionContext executionContext) {