diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/src/org/aspectj/testing/harness/bridge/AjcTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/src/org/aspectj/testing/harness/bridge/AjcTest.java b/testing/src/org/aspectj/testing/harness/bridge/AjcTest.java index e67eb8b9e..7d4e97036 100644 --- a/testing/src/org/aspectj/testing/harness/bridge/AjcTest.java +++ b/testing/src/org/aspectj/testing/harness/bridge/AjcTest.java @@ -452,6 +452,20 @@ public class AjcTest extends RunSpecIterator { */ public static class Suite extends RunSpecIterator { final Spec spec; + + /** + * Count the number of AjcTest in this suite. + * @param spec + * @return + */ + public static int countTests(Suite.Spec spec) { + return spec.children.size(); + } + + public static AjcTest.Spec[] getTests(Suite.Spec spec) { + return (AjcTest.Spec[]) spec.children.toArray(new AjcTest.Spec[0]); + } + public Suite(Spec spec, Sandbox sandbox, Validator validator) { super(spec, sandbox, validator, false); this.spec = spec; |