diff options
author | Andy Clement <aclement@gopivotal.com> | 2014-10-06 17:35:51 -0700 |
---|---|---|
committer | Andy Clement <aclement@gopivotal.com> | 2014-10-06 17:35:51 -0700 |
commit | c8e951296c5f95e82d4c7c3f8eb9b0a647014e20 (patch) | |
tree | 2eaed5b80ad735e4c91e424098e35e221f4fea44 /testing | |
parent | 102173fc11fc6648ed8f2283d3c5ad535e412c73 (diff) | |
download | aspectj-c8e951296c5f95e82d4c7c3f8eb9b0a647014e20.tar.gz aspectj-c8e951296c5f95e82d4c7c3f8eb9b0a647014e20.zip |
Fix 436653: conditional aspect activation plus various polish
Modified test expectation system so it is possible to say
the test cares about one particular message and the rest
do not matter (prefix message string with '*') - crude but
quick.
Polished many places to exploit generics
Upgraded all the tests to work on Java8 - some serious changes
regarding ajdoc on Java8. Hopefully it has stayed backwards
compatible with earlier JDK versions (e.g. if using AspectJ 1.8.3+
with a JDK less than 8) but no explicit testing done for this.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/newsrc/org/aspectj/testing/CompileSpec.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testing/newsrc/org/aspectj/testing/CompileSpec.java b/testing/newsrc/org/aspectj/testing/CompileSpec.java index 6d42149ff..540c678a5 100644 --- a/testing/newsrc/org/aspectj/testing/CompileSpec.java +++ b/testing/newsrc/org/aspectj/testing/CompileSpec.java @@ -293,16 +293,16 @@ public class CompileSpec implements ITestStep { } protected AjcTestCase.MessageSpec buildMessageSpec() { - List infos = null; - List warnings = new ArrayList(); - List errors = new ArrayList(); - List fails = new ArrayList(); - List weaveInfos = new ArrayList(); + List<AjcTestCase.Message> infos = null; + List<AjcTestCase.Message> warnings = new ArrayList<AjcTestCase.Message>(); + List<AjcTestCase.Message> errors = new ArrayList<AjcTestCase.Message>(); + List<AjcTestCase.Message> fails = new ArrayList<AjcTestCase.Message>(); + List<AjcTestCase.Message> weaveInfos = new ArrayList<AjcTestCase.Message>(); for (Iterator iter = expected.iterator(); iter.hasNext();) { ExpectedMessageSpec exMsg = (ExpectedMessageSpec) iter.next(); String kind = exMsg.getKind(); if (kind.equals("info")) { - if (infos == null) infos = new ArrayList(); + if (infos == null) infos = new ArrayList<AjcTestCase.Message>(); infos.add(exMsg.toMessage()); } else if (kind.equals("warning")) { warnings.add(exMsg.toMessage()); |