diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/JavaReformatOnTypingTest.java b/java/java-tests/testSrc/com/intellij/codeInsight/JavaReformatOnTypingTest.java index 53383e13f3f1..49fae5fe172f 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/JavaReformatOnTypingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/JavaReformatOnTypingTest.java @@ -97,6 +97,18 @@ public class JavaReformatOnTypingTest extends LightPlatformCodeInsightFixtureTes "class X { String s = \"xxxxx=x\"; }"); } + public void test_InsideStringLiteral() { + doTest("class X { String x = \"x }", "=y", "class X { String x = \"x=y }"); + } + + public void test_InsideCharLiteral() { + doTest("class X { char x = ''; }", "=", "class X { char x = '='; }"); + } + + public void test_AfterOpenedBracket() { + doTest("class X { char x = ' }", "='", "class X { char x = '=' }"); + } + public void test_DistinguishAssignmentAndEquality() { doTest("class T { boolean b = 1 }", "==", "class T { boolean b = 1 == }"); }