From: Andy Clement Date: Wed, 14 Feb 2018 20:39:28 +0000 (-0800) Subject: Add missing overrides X-Git-Tag: V1_9_0_RC4~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9f84167fbca3c07fb11b761e8accf13bcc97890e;p=aspectj.git Add missing overrides --- 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);