aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/NonNullWithAlternateException.java9
-rw-r--r--test/transform/resource/before/NonNullWithMistypedException.java7
2 files changed, 16 insertions, 0 deletions
diff --git a/test/transform/resource/before/NonNullWithAlternateException.java b/test/transform/resource/before/NonNullWithAlternateException.java
new file mode 100644
index 00000000..780afc39
--- /dev/null
+++ b/test/transform/resource/before/NonNullWithAlternateException.java
@@ -0,0 +1,9 @@
+//CONF: lombok.nonNull.exceptionType = java.lang.IllegalArgumentException
+
+public class NonNullWithAlternateException {
+ @lombok.NonNull @lombok.Setter private String test;
+
+ public void testMethod(@lombok.NonNull String arg) {
+ System.out.println(arg);
+ }
+}
diff --git a/test/transform/resource/before/NonNullWithMistypedException.java b/test/transform/resource/before/NonNullWithMistypedException.java
new file mode 100644
index 00000000..6e1fb880
--- /dev/null
+++ b/test/transform/resource/before/NonNullWithMistypedException.java
@@ -0,0 +1,7 @@
+//CONF: lombok.nonNull.exceptionType = 12345
+//skip compare content: Just testing appropriate generation of error message.
+
+@lombok.Data
+public class NonNullWithMistypedException {
+ private @lombok.NonNull String test;
+}