Files
openide/java/java-tests/testSrc/com/intellij/codeInsight/JavaBackspaceTest.java
Dmitry Jemerov 0b16d0a9dd Extract Java-specific part out of BackspaceTest
GitOrigin-RevId: dbf90977b63194afa98d2db3e397f25782d61ac9
2022-05-02 16:17:10 +00:00

40 lines
1.1 KiB
Java

// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInsight;
import com.intellij.JavaTestUtil;
import com.intellij.testFramework.LightPlatformCodeInsightTestCase;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
public class JavaBackspaceTest extends LightPlatformCodeInsightTestCase {
@Override
protected @NotNull String getTestDataPath() {
return JavaTestUtil.getJavaTestDataPath();
}
public void testBracket1() { doTest(); }
public void testBracket2() { doTest(); }
public void testBracket3() { doTest(); }
public void testBracket4() { doTest(); }
public void testIdea186011() { doTest(); }
public void testQuote1() { doTest(); }
public void testQuote2() { doTest(); }
public void testQuoteAndCommentAfter() { doTest(); }
private void doTest() {
@NonNls String path = "/codeInsight/backspace/";
configureByFile(path + getTestName(false) + ".java");
backspace();
checkResultByFile(path + getTestName(false) + "_after.java");
}
}