aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2017-09-22 15:17:54 -0700
committerAndy Clement <aclement@pivotal.io>2017-09-22 15:17:54 -0700
commitfaac3d84e254d747076dc258f9a059839946a274 (patch)
tree80b1490eb76c266169efed6a6e1ef70e4cacf328 /testing
parente136805cb6db5243307cb6579cd2cfe84f87c2e6 (diff)
downloadaspectj-faac3d84e254d747076dc258f9a059839946a274.tar.gz
aspectj-faac3d84e254d747076dc258f9a059839946a274.zip
various changes to make more tests pass on Java9
Diffstat (limited to 'testing')
-rw-r--r--testing/newsrc/org/aspectj/testing/OutputLine.java26
-rw-r--r--testing/newsrc/org/aspectj/testing/OutputSpec.java5
2 files changed, 20 insertions, 11 deletions
diff --git a/testing/newsrc/org/aspectj/testing/OutputLine.java b/testing/newsrc/org/aspectj/testing/OutputLine.java
index d7350428a..fc6fe4ce9 100644
--- a/testing/newsrc/org/aspectj/testing/OutputLine.java
+++ b/testing/newsrc/org/aspectj/testing/OutputLine.java
@@ -12,25 +12,31 @@
package org.aspectj.testing;
/**
- * @author colyer
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
+ * @author Adrian Colyer
+ * @author Andy Clement
*/
public class OutputLine {
+ // Expected text
private String text;
+
+ // Comma separated list of vm versions on which this is expected
+ private String vm;
- /**
- * @return Returns the text.
- */
public String getText() {
return text;
}
- /**
- * @param text The text to set.
- */
+
public void setText(String text) {
this.text = text;
}
+
+ public String getVm() {
+ return vm;
+ }
+
+ public void setVm(String vm) {
+ this.vm = vm;
+ }
+
}
diff --git a/testing/newsrc/org/aspectj/testing/OutputSpec.java b/testing/newsrc/org/aspectj/testing/OutputSpec.java
index ffb3362f3..4f978f6b6 100644
--- a/testing/newsrc/org/aspectj/testing/OutputSpec.java
+++ b/testing/newsrc/org/aspectj/testing/OutputSpec.java
@@ -16,13 +16,16 @@ import java.util.ArrayList;
import java.util.StringTokenizer;
import org.aspectj.tools.ajc.AjcTestCase;
+import org.aspectj.util.LangUtil;
public class OutputSpec {
private List<String> expectedOutputLines = new ArrayList<String>();
public void addLine(OutputLine line) {
- expectedOutputLines.add(line.getText());
+ if (line.getVm() == null || line.getVm().contains(LangUtil.getVmVersionString())) {
+ expectedOutputLines.add(line.getText());
+ }
}
public void matchAgainst(String output) {