aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/src/test/java/org/aspectj/testing/CompileSpec.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/src/test/java/org/aspectj/testing/CompileSpec.java b/testing/src/test/java/org/aspectj/testing/CompileSpec.java
index ac6ac6af2..9122dc0d3 100644
--- a/testing/src/test/java/org/aspectj/testing/CompileSpec.java
+++ b/testing/src/test/java/org/aspectj/testing/CompileSpec.java
@@ -314,6 +314,7 @@ public class CompileSpec implements ITestStep {
List<AjcTestCase.Message> errors = new ArrayList<>();
List<AjcTestCase.Message> fails = new ArrayList<>();
List<AjcTestCase.Message> weaveInfos = new ArrayList<>();
+ List<AjcTestCase.Message> usages = new ArrayList<>();
for (ExpectedMessageSpec exMsg: expected) {
String kind = exMsg.getKind();
if (kind.equals("info")) {
@@ -329,9 +330,11 @@ public class CompileSpec implements ITestStep {
fails.add(exMsg.toMessage());
} else if (kind.equals("weave")) {
weaveInfos.add(exMsg.toMessage());
+ } else if (kind.equals("usage")) {
+ weaveInfos.add(exMsg.toMessage());
}
}
- return new AjcTestCase.MessageSpec(infos,warnings,errors,fails,weaveInfos);
+ return new AjcTestCase.MessageSpec(infos,warnings,errors,fails,weaveInfos, usages);
}
}