diff options
author | Andy Clement <aclement@pivotal.io> | 2018-02-14 12:39:28 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2018-02-14 12:39:28 -0800 |
commit | 9f84167fbca3c07fb11b761e8accf13bcc97890e (patch) | |
tree | 81b6af13b1e7616cf7e5a3dbd95d4ff7cbc1c7d7 /testing | |
parent | 83bca73bb98e6e90a9ef2778f1654df2e21e70eb (diff) | |
download | aspectj-9f84167fbca3c07fb11b761e8accf13bcc97890e.tar.gz aspectj-9f84167fbca3c07fb11b761e8accf13bcc97890e.zip |
Add missing overrides
Diffstat (limited to 'testing')
-rw-r--r-- | testing/newsrc/org/aspectj/testing/RunSpec.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/testing/newsrc/org/aspectj/testing/RunSpec.java b/testing/newsrc/org/aspectj/testing/RunSpec.java index 9d21b599c..62b93bcb0 100644 --- a/testing/newsrc/org/aspectj/testing/RunSpec.java +++ b/testing/newsrc/org/aspectj/testing/RunSpec.java @@ -21,9 +21,6 @@ import java.util.StringTokenizer; import org.aspectj.tools.ajc.AjcTestCase; import org.aspectj.util.FileUtil; -import org.aspectj.util.LangUtil; -import org.aspectj.weaver.Utils; -import org.aspectj.weaver.bcel.Utility; /** * @author Adrian Colyer @@ -46,18 +43,20 @@ public class RunSpec implements ITestStep { private String vmargs; private String usefullltw; + @Override public String toString() { return "RunSpec: Running '"+classToRun+"' in directory '"+baseDir+"'. Classpath of '"+cpath+"'"; } public RunSpec() { } + @Override public void execute(AjcTestCase inTestCase) { if (!expected.isEmpty()) { System.err.println("Warning, message spec for run command is currently ignored (org.aspectj.testing.RunSpec)"); } String[] args = buildArgs(); - // System.err.println("? execute() inTestCase='" + inTestCase + "', ltwFile=" + ltwFile); +// System.err.println("? execute() inTestCase='" + inTestCase + "', ltwFile=" + ltwFile); boolean useLtw = copyLtwFile(inTestCase.getSandboxDirectory()); copyXlintFile(inTestCase.getSandboxDirectory()); @@ -108,17 +107,24 @@ public class RunSpec implements ITestStep { } } + @Override public void addExpectedMessage(ExpectedMessageSpec message) { expected.add(message); } + @Override public void setBaseDir(String dir) { this.baseDir = dir; } + @Override public void setTest(AjcTest test) { this.myTest = test; } + + public AjcTest getTest() { + return this.myTest; + } public String getOptions() { return options; @@ -242,7 +248,6 @@ public class RunSpec implements ITestStep { this.usefullltw = usefullltw; } - private void copyXlintFile(File sandboxDirectory) { if (xlintFile != null) { File from = new File(baseDir, xlintFile); |