mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Java: remove unnecessary calls to setTemplateTesting() from test (IJ-CR-143669)
GitOrigin-RevId: 4e7a40baa1c5b2c4caa1213ae5fefb8d745a85aa
This commit is contained in:
committed by
intellij-monorepo-bot
parent
17e56a3033
commit
d009fb0ae7
-7
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user