aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
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 d687ae86b..9e07f8a44 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;
@@ -78,7 +79,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();
@@ -171,6 +172,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);