aboutsummaryrefslogtreecommitdiffstats
path: root/tests/harness
diff options
context:
space:
mode:
authorwisberg <wisberg>2004-03-31 00:38:51 +0000
committerwisberg <wisberg>2004-03-31 00:38:51 +0000
commitc2bcc9d1c7f47299055bf68c4f1ae32f5aa9553a (patch)
tree66e82e531548b6baa3fba1231e85c15025be2004 /tests/harness
parentfe4fc06aa414d03e0b3124aa67f9546dc67b659a (diff)
downloadaspectj-c2bcc9d1c7f47299055bf68c4f1ae32f5aa9553a.tar.gz
aspectj-c2bcc9d1c7f47299055bf68c4f1ae32f5aa9553a.zip
dir-changes tests
Diffstat (limited to 'tests/harness')
-rw-r--r--tests/harness/DirChangesTest.java16
-rw-r--r--tests/harness/dirchanges-inc/src/Changed.20.java11
-rw-r--r--tests/harness/dirchanges-inc/src/Changed.java12
-rw-r--r--tests/harness/dirchanges-inc/src/Removed.delete.20.java7
-rw-r--r--tests/harness/dirchanges-inc/src/Removed.java7
-rw-r--r--tests/harness/dirchanges-inc/src/Unchanged.java6
6 files changed, 59 insertions, 0 deletions
diff --git a/tests/harness/DirChangesTest.java b/tests/harness/DirChangesTest.java
new file mode 100644
index 000000000..a305cd220
--- /dev/null
+++ b/tests/harness/DirChangesTest.java
@@ -0,0 +1,16 @@
+import org.aspectj.testing.Tester;
+
+public class DirChangesTest {
+ public static void main (String[] args) {
+ Tester.check(true, "ok");
+ }
+ static class Nested {
+ static int meaningOfLife = 42;
+ }
+ class Inner {
+ int meaningOfLife = 42;
+ }
+
+}
+
+
diff --git a/tests/harness/dirchanges-inc/src/Changed.20.java b/tests/harness/dirchanges-inc/src/Changed.20.java
new file mode 100644
index 000000000..6d4871531
--- /dev/null
+++ b/tests/harness/dirchanges-inc/src/Changed.20.java
@@ -0,0 +1,11 @@
+
+
+public class Changed {
+ public static void main(String[] args) {
+ Unchanged.main(args);
+ String sargs = java.util.Arrays.asList(args).toString();
+ if (!"[second]".equals(sargs)) {
+ throw new Error("expected args [second] but got " + sargs);
+ }
+ }
+} \ No newline at end of file
diff --git a/tests/harness/dirchanges-inc/src/Changed.java b/tests/harness/dirchanges-inc/src/Changed.java
new file mode 100644
index 000000000..7c6484ec8
--- /dev/null
+++ b/tests/harness/dirchanges-inc/src/Changed.java
@@ -0,0 +1,12 @@
+
+import org.aspectj.testing.Tester;
+
+public class Changed {
+ public static void main(String[] args) {
+ Unchanged.main(args);
+ String sargs = java.util.Arrays.asList(args).toString();
+ if (!"[first]".equals(sargs)) {
+ throw new Error("expected args [first] but got " + sargs);
+ }
+ }
+} \ No newline at end of file
diff --git a/tests/harness/dirchanges-inc/src/Removed.delete.20.java b/tests/harness/dirchanges-inc/src/Removed.delete.20.java
new file mode 100644
index 000000000..0b430c163
--- /dev/null
+++ b/tests/harness/dirchanges-inc/src/Removed.delete.20.java
@@ -0,0 +1,7 @@
+
+
+public class Removed {
+ public static void main(String[] args) {
+ Changed.main(args);
+ }
+} \ No newline at end of file
diff --git a/tests/harness/dirchanges-inc/src/Removed.java b/tests/harness/dirchanges-inc/src/Removed.java
new file mode 100644
index 000000000..0b430c163
--- /dev/null
+++ b/tests/harness/dirchanges-inc/src/Removed.java
@@ -0,0 +1,7 @@
+
+
+public class Removed {
+ public static void main(String[] args) {
+ Changed.main(args);
+ }
+} \ No newline at end of file
diff --git a/tests/harness/dirchanges-inc/src/Unchanged.java b/tests/harness/dirchanges-inc/src/Unchanged.java
new file mode 100644
index 000000000..807c14bf7
--- /dev/null
+++ b/tests/harness/dirchanges-inc/src/Unchanged.java
@@ -0,0 +1,6 @@
+
+
+public class Unchanged {
+ public static void main(String[] args) {
+ }
+} \ No newline at end of file