1 package org
.argeo
.slc
.ant
.unit
;
3 import junit
.framework
.TestCase
;
5 import org
.argeo
.slc
.ant
.AntExecutionContext
;
6 import org
.argeo
.slc
.ant
.AntSlcRuntime
;
7 import org
.argeo
.slc
.runtime
.SlcExecutionOutput
;
9 public abstract class AntSlcApplicationTestCase
extends TestCase
implements
10 SlcExecutionOutput
<AntExecutionContext
> {
12 /** To be overriden */
13 public void postExecution(AntExecutionContext executionContext
) {
17 protected String
getRootDir() {
18 return System
.getProperty("slc.rootDir", "src/main/slc/root");
21 protected String
getAbsoluteScript(String relative
) {
22 return getRootDir() + '/' + relative
;
25 protected void execute(String relativeScript
) {
26 execute(relativeScript
, null);
29 protected void execute(String relativeScript
, String targets
) {
30 new AntSlcRuntime().executeScript(
31 getAbsoluteScript(relativeScript
), targets
, this);