diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-08-10 18:41:51 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-08-10 18:41:51 +0200 |
commit | 42f5a55d69850603d951a65929f48a3b462b54ea (patch) | |
tree | 6ff11bb6bd40b6695993276065e5467fcee7806e /test/transform/resource/before | |
parent | 0dbc68a5cc2df113c22a72c78c39dedd1e1cb714 (diff) | |
download | lombok-42f5a55d69850603d951a65929f48a3b462b54ea.tar.gz lombok-42f5a55d69850603d951a65929f48a3b462b54ea.tar.bz2 lombok-42f5a55d69850603d951a65929f48a3b462b54ea.zip |
Added tests for @FieldDefaults and @Value.
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/FieldDefaults.java | 15 | ||||
-rw-r--r-- | test/transform/resource/before/FieldDefaultsNoop.java | 3 | ||||
-rw-r--r-- | test/transform/resource/before/ValuePlain.java | 13 |
3 files changed, 31 insertions, 0 deletions
diff --git a/test/transform/resource/before/FieldDefaults.java b/test/transform/resource/before/FieldDefaults.java new file mode 100644 index 00000000..ffe89734 --- /dev/null +++ b/test/transform/resource/before/FieldDefaults.java @@ -0,0 +1,15 @@ +@lombok.experimental.FieldDefaults(makeFinal = true) +class FieldDefaults1 { + int x; + @lombok.experimental.NonFinal int y; + + FieldDefaults1(int x) { + this.x = x; + } +} + +@lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PRIVATE) +class FieldDefaults2 { + @lombok.experimental.PackagePrivate int x; + int y; +}
\ No newline at end of file diff --git a/test/transform/resource/before/FieldDefaultsNoop.java b/test/transform/resource/before/FieldDefaultsNoop.java new file mode 100644 index 00000000..cbdefaf5 --- /dev/null +++ b/test/transform/resource/before/FieldDefaultsNoop.java @@ -0,0 +1,3 @@ +@lombok.experimental.FieldDefaults +class FieldDefaultsNoop { +}
\ No newline at end of file diff --git a/test/transform/resource/before/ValuePlain.java b/test/transform/resource/before/ValuePlain.java new file mode 100644 index 00000000..39c583cc --- /dev/null +++ b/test/transform/resource/before/ValuePlain.java @@ -0,0 +1,13 @@ +import lombok.experimental.Value; +@lombok.experimental.Value class Value1 { + final int x; + String name; +} +@Value @lombok.experimental.NonFinal class Value2 { + public int x; + String name; +} +@Value class Value3 { + @lombok.experimental.NonFinal int x; + int y; +}
\ No newline at end of file |