diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-03-21 17:27:49 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-03-21 17:27:49 +0700 |
commit | e4a2a5a5d274bc16bae3d1178789752dba043730 (patch) | |
tree | 2981f6a48ba0a35c0706979b35f068adaedcf8d7 /testing | |
parent | 01283150755102e2280e8a864a436a91a8e50278 (diff) | |
download | aspectj-e4a2a5a5d274bc16bae3d1178789752dba043730.tar.gz aspectj-e4a2a5a5d274bc16bae3d1178789752dba043730.zip |
Fix + improve some tests regarding Ajc output (usage messages etc.)
After Ajc usage text output is filtered into its own category
IMessage.USAGE now - see commit @31b2d60b - some tests in module
'org.aspectj.ajdt.core' were failing. I fixed and also improved them a
bit.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/src/test/java/org/aspectj/testing/CompileSpec.java | 5 |
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); } } |