aboutsummaryrefslogtreecommitdiffstats
path: root/tests/harness/sourceroot/packageOne
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-03-10 22:47:43 +0000
committerwisberg <wisberg>2003-03-10 22:47:43 +0000
commit7139ac48be452e260c39f5c75ed845b661725cc9 (patch)
tree496814f996462c399c8971d7bea95b899134e998 /tests/harness/sourceroot/packageOne
parentc70fde750ae5cf0dc0b27ae30f68bb1f30a70e00 (diff)
downloadaspectj-7139ac48be452e260c39f5c75ed845b661725cc9.tar.gz
aspectj-7139ac48be452e260c39f5c75ed845b661725cc9.zip
harness tests upgraded to avoid tests that rely on multiple error messages
and to add coverage for sourceroot tests
Diffstat (limited to 'tests/harness/sourceroot/packageOne')
-rw-r--r--tests/harness/sourceroot/packageOne/Main.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/harness/sourceroot/packageOne/Main.java b/tests/harness/sourceroot/packageOne/Main.java
new file mode 100644
index 000000000..c5204df12
--- /dev/null
+++ b/tests/harness/sourceroot/packageOne/Main.java
@@ -0,0 +1,18 @@
+
+package packageOne;
+
+import org.aspectj.testing.Tester;
+
+public class Main {
+ public static void main(String[] args) {
+ Tester.expectEvent("go");
+ for (int i = 0; i < args.length; i++) {
+ Tester.expectEvent(args[i]);
+ }
+ go();
+ Tester.checkAllEvents();
+ }
+ static void go() {
+ Tester.event("go");
+ }
+} \ No newline at end of file