aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2009-12-01 23:23:35 +0100
committerRoel Spilker <r.spilker@gmail.com>2009-12-01 23:31:12 +0100
commit2aebaff46026dbfa447fd7454472e88c41dc8103 (patch)
tree609c69c3cd5277e861315a2b23deb86a8e5c2de9 /test/pretty/resource
parent2a56f341d0073099859db815caf9d455f74e6198 (diff)
downloadlombok-2aebaff46026dbfa447fd7454472e88c41dc8103.tar.gz
lombok-2aebaff46026dbfa447fd7454472e88c41dc8103.tar.bz2
lombok-2aebaff46026dbfa447fd7454472e88c41dc8103.zip
Moved test resource files to a better matching location
Diffstat (limited to 'test/pretty/resource')
-rw-r--r--test/pretty/resource/after/Annotation.java9
-rw-r--r--test/pretty/resource/after/Cast.java6
-rw-r--r--test/pretty/resource/after/ForEach.java9
-rw-r--r--test/pretty/resource/after/ForLoop.java11
-rw-r--r--test/pretty/resource/after/WithComments.java5
-rw-r--r--test/pretty/resource/before/Annotation.java9
-rw-r--r--test/pretty/resource/before/Cast.java6
-rw-r--r--test/pretty/resource/before/ForEach.java9
-rw-r--r--test/pretty/resource/before/ForLoop.java12
-rw-r--r--test/pretty/resource/before/WithComments.java5
10 files changed, 81 insertions, 0 deletions
diff --git a/test/pretty/resource/after/Annotation.java b/test/pretty/resource/after/Annotation.java
new file mode 100644
index 00000000..006af03e
--- /dev/null
+++ b/test/pretty/resource/after/Annotation.java
@@ -0,0 +1,9 @@
+@SuppressWarnings("all")
+class Annotation {
+ @Override
+ public String toString() {
+ return super.toString();
+ }
+ public void method(@SuppressWarnings("unused") int x) {
+ }
+} \ No newline at end of file
diff --git a/test/pretty/resource/after/Cast.java b/test/pretty/resource/after/Cast.java
new file mode 100644
index 00000000..95237b0f
--- /dev/null
+++ b/test/pretty/resource/after/Cast.java
@@ -0,0 +1,6 @@
+import java.util.*;
+public class Cast {
+ public void test(List<?> list) {
+ RandomAccess r = (/*before*/ RandomAccess /*after*/)list;
+ }
+} \ No newline at end of file
diff --git a/test/pretty/resource/after/ForEach.java b/test/pretty/resource/after/ForEach.java
new file mode 100644
index 00000000..c4d4a9dc
--- /dev/null
+++ b/test/pretty/resource/after/ForEach.java
@@ -0,0 +1,9 @@
+import java.util.Arrays;
+public class ForEach {
+ {
+ for (int i : Arrays.asList(1, 2, 3)) {
+ System.out.println(i);
+ // Do something
+ }
+ }
+}
diff --git a/test/pretty/resource/after/ForLoop.java b/test/pretty/resource/after/ForLoop.java
new file mode 100644
index 00000000..615f6e8a
--- /dev/null
+++ b/test/pretty/resource/after/ForLoop.java
@@ -0,0 +1,11 @@
+public class ForLoop {
+ public static void main(String[] args) {
+ // before loop
+ for (int i = 0; i < 10; i++) {
+ // start of block
+ System.out.println(i);
+ // end of block
+ }
+ // after loop
+ }
+}
diff --git a/test/pretty/resource/after/WithComments.java b/test/pretty/resource/after/WithComments.java
new file mode 100644
index 00000000..e4f078aa
--- /dev/null
+++ b/test/pretty/resource/after/WithComments.java
@@ -0,0 +1,5 @@
+// Cool Comments
+public class WithComments {
+ // Also inside the body
+// On start of line
+} \ No newline at end of file
diff --git a/test/pretty/resource/before/Annotation.java b/test/pretty/resource/before/Annotation.java
new file mode 100644
index 00000000..297dd793
--- /dev/null
+++ b/test/pretty/resource/before/Annotation.java
@@ -0,0 +1,9 @@
+@SuppressWarnings("all")
+class Annotation {
+ @Override
+ public String toString() {
+ return super.toString();
+ }
+ public void method(@SuppressWarnings("unused") int x) {
+ }
+}
diff --git a/test/pretty/resource/before/Cast.java b/test/pretty/resource/before/Cast.java
new file mode 100644
index 00000000..95237b0f
--- /dev/null
+++ b/test/pretty/resource/before/Cast.java
@@ -0,0 +1,6 @@
+import java.util.*;
+public class Cast {
+ public void test(List<?> list) {
+ RandomAccess r = (/*before*/ RandomAccess /*after*/)list;
+ }
+} \ No newline at end of file
diff --git a/test/pretty/resource/before/ForEach.java b/test/pretty/resource/before/ForEach.java
new file mode 100644
index 00000000..c4d4a9dc
--- /dev/null
+++ b/test/pretty/resource/before/ForEach.java
@@ -0,0 +1,9 @@
+import java.util.Arrays;
+public class ForEach {
+ {
+ for (int i : Arrays.asList(1, 2, 3)) {
+ System.out.println(i);
+ // Do something
+ }
+ }
+}
diff --git a/test/pretty/resource/before/ForLoop.java b/test/pretty/resource/before/ForLoop.java
new file mode 100644
index 00000000..2bed7f9b
--- /dev/null
+++ b/test/pretty/resource/before/ForLoop.java
@@ -0,0 +1,12 @@
+public class ForLoop {
+
+ public static void main(String[] args) {
+ // before loop
+ for (int i = 0; i < 10; i++) {
+ // start of block
+ System.out.println(i);
+ // end of block
+ }
+ // after loop
+ }
+}
diff --git a/test/pretty/resource/before/WithComments.java b/test/pretty/resource/before/WithComments.java
new file mode 100644
index 00000000..f75551ac
--- /dev/null
+++ b/test/pretty/resource/before/WithComments.java
@@ -0,0 +1,5 @@
+// Cool Comments
+public class WithComments {
+ // Also inside the body
+// On start of line
+}