From 3d90a51163354930eeea0e26c2b0a567af8e96be Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Thu, 23 Apr 2020 09:59:36 +0200 Subject: Added tests for ExtensionMethod --- .../after-delombok/ExtensionMethodVarargs.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/transform/resource/after-delombok/ExtensionMethodVarargs.java (limited to 'test/transform/resource/after-delombok/ExtensionMethodVarargs.java') diff --git a/test/transform/resource/after-delombok/ExtensionMethodVarargs.java b/test/transform/resource/after-delombok/ExtensionMethodVarargs.java new file mode 100644 index 00000000..237b73ef --- /dev/null +++ b/test/transform/resource/after-delombok/ExtensionMethodVarargs.java @@ -0,0 +1,19 @@ +class ExtensionMethodVarargs { + public void test() { + Long l1 = 1L; + long l2 = 1L; + Integer i1 = 1; + int i2 = 1; + ExtensionMethodVarargs.Extensions.format("%d %d %d %d", l1, l2, i1, i2); + ExtensionMethodVarargs.Extensions.format("%d", l1); + ExtensionMethodVarargs.Extensions.format("", new Integer[] {1, 2}); + ExtensionMethodVarargs.Extensions.format("", new Integer[] {1, 2}, new Integer[] {1, 2}); + } + + + static class Extensions { + public static String format(String string, Object... params) { + return String.format(string, params); + } + } +} \ No newline at end of file -- cgit