summaryrefslogtreecommitdiffstats
path: root/tests/harness/inpath/aspectsrc/A.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/harness/inpath/aspectsrc/A.java')
-rw-r--r--tests/harness/inpath/aspectsrc/A.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/harness/inpath/aspectsrc/A.java b/tests/harness/inpath/aspectsrc/A.java
new file mode 100644
index 000000000..8d0f487a5
--- /dev/null
+++ b/tests/harness/inpath/aspectsrc/A.java
@@ -0,0 +1,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();
+ }
+}