blob: 8d0f487a5e8df660405e92e79f8091858d7129aa (
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 aspect A {
static {
Tester.expectEvents(
new String[] {
"execution(void Main.main(String[]))",
"execution(void pack.Util.log(String[]))"
}
);
}
before() : execution(public static * *(..)) {
Tester.event("" + thisJoinPointStaticPart);
//System.out.println("\"" + thisJoinPointStaticPart);
}
after() returning : execution(public static void main(String[])) {
Tester.checkAllEvents();
}
}
|