aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-05-01 01:33:57 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-05-01 01:33:57 +0200
commitbf0499263b05e11fdd43886df3dc5663c8fee5f4 (patch)
tree6292ee0339692e5fee9c8231c11704ed39393606 /test
parentac0eeacc699aa1427fab3fbc5c57fd6d6b183473 (diff)
downloadlombok-bf0499263b05e11fdd43886df3dc5663c8fee5f4.tar.gz
lombok-bf0499263b05e11fdd43886df3dc5663c8fee5f4.tar.bz2
lombok-bf0499263b05e11fdd43886df3dc5663c8fee5f4.zip
[issue #2092] Add an uppercase option to FieldNameConstants
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/FieldNameConstantsUppercased.java12
-rw-r--r--test/transform/resource/after-ecj/FieldNameConstantsUppercased.java23
-rw-r--r--test/transform/resource/before/FieldNameConstantsUppercased.java12
3 files changed, 47 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/FieldNameConstantsUppercased.java b/test/transform/resource/after-delombok/FieldNameConstantsUppercased.java
new file mode 100644
index 00000000..dd7de86a
--- /dev/null
+++ b/test/transform/resource/after-delombok/FieldNameConstantsUppercased.java
@@ -0,0 +1,12 @@
+public class FieldNameConstantsUppercased {
+ String iAmADvdPlayer;
+ int $skipMe;
+ static double skipMeToo;
+ int andMe;
+ String butPrintMePlease;
+ @java.lang.SuppressWarnings("all")
+ static final class Fields {
+ public static final java.lang.String I_AM_A_DVD_PLAYER = "iAmADvdPlayer";
+ public static final java.lang.String BUT_PRINT_ME_PLEASE = "butPrintMePlease";
+ }
+}
diff --git a/test/transform/resource/after-ecj/FieldNameConstantsUppercased.java b/test/transform/resource/after-ecj/FieldNameConstantsUppercased.java
new file mode 100644
index 00000000..a858b91f
--- /dev/null
+++ b/test/transform/resource/after-ecj/FieldNameConstantsUppercased.java
@@ -0,0 +1,23 @@
+import lombok.experimental.FieldNameConstants;
+import lombok.AccessLevel;
+public @FieldNameConstants(level = AccessLevel.PACKAGE) class FieldNameConstantsUppercased {
+ static final @java.lang.SuppressWarnings("all") class Fields {
+ public static final java.lang.String I_AM_A_DVD_PLAYER = "iAmADvdPlayer";
+ public static final java.lang.String BUT_PRINT_ME_PLEASE = "butPrintMePlease";
+ <clinit>() {
+ }
+ private @java.lang.SuppressWarnings("all") Fields() {
+ super();
+ }
+ }
+ String iAmADvdPlayer;
+ int $skipMe;
+ static double skipMeToo;
+ @FieldNameConstants.Exclude int andMe;
+ String butPrintMePlease;
+ <clinit>() {
+ }
+ public FieldNameConstantsUppercased() {
+ super();
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/FieldNameConstantsUppercased.java b/test/transform/resource/before/FieldNameConstantsUppercased.java
new file mode 100644
index 00000000..674cb7f1
--- /dev/null
+++ b/test/transform/resource/before/FieldNameConstantsUppercased.java
@@ -0,0 +1,12 @@
+//CONF: lombok.fieldNameConstants.uppercase = true
+import lombok.experimental.FieldNameConstants;
+import lombok.AccessLevel;
+
+@FieldNameConstants(level = AccessLevel.PACKAGE)
+public class FieldNameConstantsUppercased {
+ String iAmADvdPlayer;
+ int $skipMe;
+ static double skipMeToo;
+ @FieldNameConstants.Exclude int andMe;
+ String butPrintMePlease;
+}