From 9f84167fbca3c07fb11b761e8accf13bcc97890e Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Wed, 14 Feb 2018 12:39:28 -0800 Subject: [PATCH] Add missing overrides --- testing/newsrc/org/aspectj/testing/RunSpec.java | 15 ++++++++++----- 1 file 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); -- 2.39.5