mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 15:52:01 +07:00
[lombok] adapted tests for changed texts
GitOrigin-RevId: 15e4b7edb29f226e05b8f8f7ee970a8427b4c252
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7e4949a5aa
commit
301da837fc
@@ -29,7 +29,7 @@ public class DeprecatedLombokAnnotationInspectionTest extends LombokInspectionTe
|
||||
|
||||
public void testDeprecatedBuilder() {
|
||||
final @Language("JAVA") String testClassText = """
|
||||
<error descr="Lombok's annotation 'lombok.experimental.Builder' is deprecated and not supported by lombok-plugin anymore. Use 'lombok.Builder' instead.">@lombok.experimental.Builder</error>
|
||||
<error descr="Lombok's annotation 'lombok.experimental.Builder' is deprecated and not supported by Lombok plugin anymore. Use 'lombok.Builder' instead.">@lombok.experimental.Builder</error>
|
||||
public class DeprecationTest {
|
||||
private String someStr;
|
||||
}""";
|
||||
@@ -42,7 +42,7 @@ public class DeprecatedLombokAnnotationInspectionTest extends LombokInspectionTe
|
||||
|
||||
public void testDeprecatedValue() {
|
||||
final @Language("JAVA") String testClassText = """
|
||||
<error descr="Lombok's annotation 'lombok.experimental.Value' is deprecated and not supported by lombok-plugin anymore. Use 'lombok.Value' instead.">@lombok.experimental.Value</error>
|
||||
<error descr="Lombok's annotation 'lombok.experimental.Value' is deprecated and not supported by Lombok plugin anymore. Use 'lombok.Value' instead.">@lombok.experimental.Value</error>
|
||||
public class DeprecationTest {
|
||||
private String someStr;
|
||||
}""";
|
||||
@@ -54,7 +54,7 @@ public class DeprecatedLombokAnnotationInspectionTest extends LombokInspectionTe
|
||||
|
||||
public void testDeprecatedWither() {
|
||||
final @Language("JAVA") String testClassText = """
|
||||
<error descr="Lombok's annotation 'lombok.experimental.Wither' is deprecated and not supported by lombok-plugin anymore. Use 'lombok.With' instead.">@lombok.experimental.Wither</error>
|
||||
<error descr="Lombok's annotation 'lombok.experimental.Wither' is deprecated and not supported by Lombok plugin anymore. Use 'lombok.With' instead.">@lombok.experimental.Wither</error>
|
||||
public class DeprecationTest {
|
||||
private String someStr;
|
||||
}""";
|
||||
|
||||
@@ -13,8 +13,8 @@ public class StaticMethodImportLombokInspectionTest extends AbstractLombokLightC
|
||||
import somepackage.SomeClass;
|
||||
|
||||
import static somepackage.Place.builder<caret>;
|
||||
import static <error descr="Static imports of lombok generated methods doesn't work with javac">somepackage.SomeClass.create</error>;
|
||||
import static <error descr="Static imports of lombok generated methods doesn't work with javac">somepackage.SomeClass.getSomeInt</error>;
|
||||
import static <error descr="Static imports of Lombok-generated methods doesn't work with javac">somepackage.SomeClass.create</error>;
|
||||
import static <error descr="Static imports of Lombok-generated methods doesn't work with javac">somepackage.SomeClass.getSomeInt</error>;
|
||||
import static java.lang.Math.max;
|
||||
import static java.util.Arrays.asList;
|
||||
|
||||
@@ -87,8 +87,8 @@ public class StaticMethodImportLombokInspectionTest extends AbstractLombokLightC
|
||||
import somepackage.Place;
|
||||
import somepackage.SomeClass;
|
||||
|
||||
import static <error descr="Static imports of lombok generated methods doesn't work with javac">somepackage.SomeClass.create</error>;
|
||||
import static <error descr="Static imports of lombok generated methods doesn't work with javac">somepackage.SomeClass.getSomeInt</error>;
|
||||
import static <error descr="Static imports of Lombok-generated methods doesn't work with javac">somepackage.SomeClass.create</error>;
|
||||
import static <error descr="Static imports of Lombok-generated methods doesn't work with javac">somepackage.SomeClass.getSomeInt</error>;
|
||||
import static java.lang.Math.max;
|
||||
import static java.util.Arrays.asList;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//skip compare content
|
||||
<error descr="Lombok does not know how to create the singular-form builder methods for type 'java.lang.String[]'; they won't be generated.">@lombok.Builder</error>
|
||||
<error descr="Lombok cannot generate singular-form builder methods for type 'java.lang.String[]'">@lombok.Builder</error>
|
||||
@lombok.ToString
|
||||
public class BuilderSingularInvalidOnArray {
|
||||
private String foo;
|
||||
|
||||
@@ -13,7 +13,7 @@ public class DelegateIncludeUnknownMethods {
|
||||
boolean clearXYZ();
|
||||
}
|
||||
|
||||
<warning descr="Cannot find symbol method clearXYZ">@Delegate(types = SomeCollection.class)</warning>
|
||||
<warning descr="Cannot find method 'clearXYZ'">@Delegate(types = SomeCollection.class)</warning>
|
||||
private final Collection<String> collection = new ArrayList<String>();
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Reference in New Issue
Block a user