diff options
Diffstat (limited to 'tests/harness/classpathTest/classpath-src/aspectjar/testaspect/SignalMainRunnable.java')
-rw-r--r-- | tests/harness/classpathTest/classpath-src/aspectjar/testaspect/SignalMainRunnable.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/harness/classpathTest/classpath-src/aspectjar/testaspect/SignalMainRunnable.java b/tests/harness/classpathTest/classpath-src/aspectjar/testaspect/SignalMainRunnable.java new file mode 100644 index 000000000..74a75a008 --- /dev/null +++ b/tests/harness/classpathTest/classpath-src/aspectjar/testaspect/SignalMainRunnable.java @@ -0,0 +1,17 @@ + +package testaspect; + +import org.aspectj.testing.Tester; + +public aspect SignalMainRunnable { + + /** + * Signal Tester event "aspect" if a main method + * calls run() on a Runnable. + */ + after() returning : withincode(public static void main(..)) + && target(Runnable) && call(void run()) { + Tester.event("aspect"); + } +} + |