mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-06 15:06:00 +02:00
8312dfbc60
moved passing tests from ajcTestsFailing to ajcTests
22 lines
482 B
Java
22 lines
482 B
Java
|
|
import org.aspectj.testing.Tester;
|
|
|
|
/** @testcase PR#900 after advice on static call jp */
|
|
public class AfterStaticCall {
|
|
public static void main(String[] args) {
|
|
Tester.expectEvent("foo()");
|
|
Tester.expectEvent("after() : call(void Test.foo())");
|
|
foo();
|
|
Tester.checkAllEvents();
|
|
}
|
|
|
|
public static void foo() {
|
|
Tester.event("foo()");
|
|
}
|
|
}
|
|
|
|
aspect LogFooCall {
|
|
after() : call(static void foo()) {
|
|
Tester.event("after() : call(void Test.foo())");
|
|
}
|
|
} |