From d009fb0ae762b6ffae7fd3c23bba1a76c0ec7679 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Fri, 6 Sep 2024 10:59:46 +0200 Subject: [PATCH] Java: remove unnecessary calls to setTemplateTesting() from test (IJ-CR-143669) GitOrigin-RevId: 4e7a40baa1c5b2c4caa1213ae5fefb8d745a85aa --- .../generation/surroundWith/JavaSurroundWithTest.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/java/java-tests/testSrc/com/intellij/java/codeInsight/generation/surroundWith/JavaSurroundWithTest.java b/java/java-tests/testSrc/com/intellij/java/codeInsight/generation/surroundWith/JavaSurroundWithTest.java index 3fed5f7f36da..41f41d98bb89 100644 --- a/java/java-tests/testSrc/com/intellij/java/codeInsight/generation/surroundWith/JavaSurroundWithTest.java +++ b/java/java-tests/testSrc/com/intellij/java/codeInsight/generation/surroundWith/JavaSurroundWithTest.java @@ -145,38 +145,31 @@ public class JavaSurroundWithTest extends LightJavaCodeInsightTestCase { } public void testSurroundWithNotNullCheck() { - TemplateManagerImpl.setTemplateTesting(getTestRootDisposable()); doTest(new JavaWithNullCheckSurrounder()); } public void testSurroundExpressionWithIf() { - TemplateManagerImpl.setTemplateTesting(getTestRootDisposable()); doTest(new JavaWithIfExpressionSurrounder()); } public void testSurroundExpressionWithIfForBoxedBooleans() { - TemplateManagerImpl.setTemplateTesting(getTestRootDisposable()); doTest(new JavaWithIfExpressionSurrounder()); } public void testSurroundExpressionWithNotForBoxedBooleans() { - TemplateManagerImpl.setTemplateTesting(getTestRootDisposable()); doTest(new JavaWithNotSurrounder()); } public void testSurroundExpressionWithElseIf() { - TemplateManagerImpl.setTemplateTesting(getTestRootDisposable()); doTest(new JavaWithIfExpressionSurrounder()); } public void testSurroundExpressionWithElseIfElse() { - //TemplateManagerImpl.setTemplateTesting(getTestRootDisposable()); doTest(new JavaWithIfElseExpressionSurrounder()); } public void testSurroundWithTryFinallyUsingIndents() { CommonCodeStyleSettings.IndentOptions indentOptions = getCurrentCodeStyleSettings().getIndentOptions(JavaFileType.INSTANCE); - boolean oldUseTabs = indentOptions.USE_TAB_CHARACTER; indentOptions.USE_TAB_CHARACTER = true; doTest(new JavaWithTryFinallySurrounder()); }