aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2022-03-23 15:44:00 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2022-03-23 15:44:00 +0700
commit948ad9f39537d9cc9d38e8b5fc6fcb9bd685ed0f (patch)
tree2beb8328385f9306b31e9ac579e55f2bce2644f5 /testing
parentf75b7deda8aea78e78335387dde42ba9b5938201 (diff)
parentbd663a7e645a1cb6f357259dfe880855c7016e21 (diff)
downloadaspectj-948ad9f39537d9cc9d38e8b5fc6fcb9bd685ed0f.tar.gz
aspectj-948ad9f39537d9cc9d38e8b5fc6fcb9bd685ed0f.zip
Merge branch 'master' into java-18
# Conflicts: # tests/src/test/java/org/aspectj/systemtest/ajc198/Bugs198Tests.java # tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
Diffstat (limited to 'testing')
-rw-r--r--testing/src/test/java/org/aspectj/testing/RunSpec.java7
-rw-r--r--testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java1
2 files changed, 7 insertions, 1 deletions
diff --git a/testing/src/test/java/org/aspectj/testing/RunSpec.java b/testing/src/test/java/org/aspectj/testing/RunSpec.java
index 534ed6374..181eb9062 100644
--- a/testing/src/test/java/org/aspectj/testing/RunSpec.java
+++ b/testing/src/test/java/org/aspectj/testing/RunSpec.java
@@ -36,6 +36,7 @@ public class RunSpec implements ITestStep {
private String options;
private String cpath;
private String mpath;
+ private String orderedStdout;
private String orderedStderr;
private AjcTest myTest;
private OutputSpec stdErrSpec;
@@ -82,7 +83,7 @@ public class RunSpec implements ITestStep {
stdErrSpec.matchAgainst(rr.getStdErr(), orderedStderr);
}
if (stdOutSpec != null) {
- stdOutSpec.matchAgainst(rr.getStdOut());
+ stdOutSpec.matchAgainst(rr.getStdOut(), orderedStdout);
}
} finally {
restoreProperties();
@@ -175,6 +176,10 @@ public class RunSpec implements ITestStep {
this.orderedStderr = orderedStderr;
}
+ public void setOrderedStdout(String orderedStdout) {
+ this.orderedStdout = orderedStdout;
+ }
+
public String getClassToRun() {
return classToRun;
}
diff --git a/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java b/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java
index 3954c7ecc..6af8ced47 100644
--- a/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java
+++ b/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java
@@ -251,6 +251,7 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase {
digester.addSetProperties("suite/ajc-test/run", "module", "moduleToRun");
digester.addSetProperties("suite/ajc-test/run", "ltw", "ltwFile");
digester.addSetProperties("suite/ajc-test/run", "xlintfile", "xlintFile");
+ digester.addSetProperties("suite/ajc-test/run/stdout", "ordered", "orderedStdout");
digester.addSetProperties("suite/ajc-test/run/stderr", "ordered", "orderedStderr");
digester.addSetNext("suite/ajc-test/run", "addTestStep", "org.aspectj.testing.ITestStep");
digester.addObjectCreate("*/message", ExpectedMessageSpec.class);