aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/test/TraceAspect.java
blob: d79c1d69cd254ac2890f748855a337fe6bbf59c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package test;

import org.aspectj.testing.*;

aspect Trace pertarget(target(test.Test)) {

    pointcut runs(): call(void run());
    
    before(): runs() {
        Tester.event("before");
    }
    after():  runs() {
        Tester.event("after");
    }
}