aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-07-20 23:52:13 +0200
committerRoel Spilker <r.spilker@gmail.com>2010-07-20 23:52:13 +0200
commit8e1cbe1b1079c1a6f5123add0241d32c8452cdae (patch)
treecd6ed0fa5cedb0e2dcd11caaeb1a6fc28a96523c
parentced6843970d270d5edce04f885cf4625cb0a9d86 (diff)
downloadlombok-8e1cbe1b1079c1a6f5123add0241d32c8452cdae.tar.gz
lombok-8e1cbe1b1079c1a6f5123add0241d32c8452cdae.tar.bz2
lombok-8e1cbe1b1079c1a6f5123add0241d32c8452cdae.zip
Added checks for warnings in test cases
-rw-r--r--test/delombok/resource/before/GetterAlreadyExists.java.messages10
-rw-r--r--test/delombok/resource/before/GetterBoolean.java.messages1
-rw-r--r--test/delombok/resource/before/SetterAlreadyExists.java.messages7
3 files changed, 18 insertions, 0 deletions
diff --git a/test/delombok/resource/before/GetterAlreadyExists.java.messages b/test/delombok/resource/before/GetterAlreadyExists.java.messages
new file mode 100644
index 00000000..99de957b
--- /dev/null
+++ b/test/delombok/resource/before/GetterAlreadyExists.java.messages
@@ -0,0 +1,10 @@
+2:9 WARNING Not generating isFoo(): A method with that name already exists (hasFoo)
+8:9 WARNING Not generating isFoo(): A method with that name already exists
+14:9 WARNING Not generating isFoo(): A method with that name already exists (getFoo)
+32:9 WARNING Not generating getFoo(): A method with that name already exists
+50:9 WARNING Not generating getFoo(): A method with that name already exists
+56:9 WARNING Not generating isFoo(): A method with that name already exists (hasFoo)
+62:9 WARNING Not generating isFoo(): A method with that name already exists
+68:9 WARNING Not generating isFoo(): A method with that name already exists (getFoo)
+86:9 WARNING Not generating getFoo(): A method with that name already exists
+104:9 WARNING Not generating getFoo(): A method with that name already exists \ No newline at end of file
diff --git a/test/delombok/resource/before/GetterBoolean.java.messages b/test/delombok/resource/before/GetterBoolean.java.messages
new file mode 100644
index 00000000..91ba7340
--- /dev/null
+++ b/test/delombok/resource/before/GetterBoolean.java.messages
@@ -0,0 +1 @@
+7:9 WARNING Not generating isFoo(): A method with that name already exists (hasFoo) \ No newline at end of file
diff --git a/test/delombok/resource/before/SetterAlreadyExists.java.messages b/test/delombok/resource/before/SetterAlreadyExists.java.messages
new file mode 100644
index 00000000..7d0397ad
--- /dev/null
+++ b/test/delombok/resource/before/SetterAlreadyExists.java.messages
@@ -0,0 +1,7 @@
+2:9 WARNING Not generating setFoo(boolean foo): A method with that name already exists
+7:9 WARNING Not generating setFoo(boolean foo): A method with that name already exists
+12:9 WARNING Not generating setFoo(String foo): A method with that name already exists
+17:9 WARNING Not generating setFoo(String foo): A method with that name already exists
+22:9 WARNING Not generating setFoo(String foo): A method with that name already exists
+27:9 WARNING Not generating setFoo(String foo): A method with that name already exists
+32:9 WARNING Not generating setFoo(String foo): A method with that name already exists