aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/KeywordAspect.java
blob: b08fc41a3de0711f66977d5e7fd8dd5a2bb760df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import org.aspectj.testing.Tester;
public class KeywordAspect {
    public static void main(String[] args) {
        new KeywordAspect().realMain(args);
    }

    String pointcut = "hi";

    public void realMain(String[] args) {
        int aspect = 0;
        aspect += 10;

        Tester.checkEqual(aspect, 10);
        Tester.checkEqual(pointcut, "hi-bye");
    }
    
    public KeywordAspect() {
	pointcut += "-bye";
    }
}