diff options
Diffstat (limited to 'tests/harness/classpathTest/AspectMain.java')
-rw-r--r-- | tests/harness/classpathTest/AspectMain.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/harness/classpathTest/AspectMain.java b/tests/harness/classpathTest/AspectMain.java new file mode 100644 index 000000000..cc7576a15 --- /dev/null +++ b/tests/harness/classpathTest/AspectMain.java @@ -0,0 +1,15 @@ + +import org.aspectj.testing.Tester; +import jar.required.Global; +import classfile.required.ClassFile; + +public class AspectMain { + public static void main (String[] args) { + Tester.expectEvent("aspect"); + Tester.check(ClassFile.isTrue(), "not ClassFile.isTrue()?"); + Tester.check(Global.isTrue(), "not Global.isTrue()?"); + // aspect advises this invocation, adds "aspect" event + new Runnable() { public void run(){}}.run(); + Tester.checkAllEvents(); + } +} |