aboutsummaryrefslogtreecommitdiffstats
path: root/tests/harness/classpathTest/AspectMain.java
blob: cc7576a15ce8c308094534e451bd7968af17a56d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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();
    } 
}