[Java. Intention Actions] Add tests for extracting field from incorrect code

IDEA-361230

GitOrigin-RevId: 40d3ad55dbdb3c26bfaac95d7b6842b2cba66af0
This commit is contained in:
Georgii Ustinov
2024-10-23 14:59:56 +00:00
committed by intellij-monorepo-bot
parent 26d8e8e45d
commit f27f78a79c
3 changed files with 12 additions and 0 deletions
@@ -0,0 +1,6 @@
// "Create constant field 'VAR'" "true-preview"
// interfaces(s should be written in Java to ease the marshalling
@DBusInterfaceName(value = VAR DBusInterface {
private static final Object VAR;
@@ -0,0 +1,4 @@
// "Create constant field 'VAR'" "true-preview"
// interfaces(s should be written in Java to ease the marshalling
@DBusInterfaceName(value = <caret>VAR DBusInterface {
@@ -78,6 +78,8 @@ public class CreateFieldFromUsageTest extends LightQuickFixTestCase {
public void testFromUnfinishedAnonymousClass() { doSingleTest(); }
public void testCreateFromAnnotationParameterIncorrectCode() { doSingleTest(); }
protected void doSingleTest() {
doSingleTest(getTestName(false) + ".java");
}