mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-153908 The setting "reformat according to style" is not saved. (fixing tests)
This commit is contained in:
@@ -84,6 +84,10 @@ public abstract class CodeInsightTestCase extends PsiTestCase {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
fixTemplates();
|
||||
}
|
||||
|
||||
public static void fixTemplates() {
|
||||
FileTemplateManager manager = FileTemplateManager.getDefaultInstance();
|
||||
for (String tname : Arrays.asList("Class", "AnnotationType", "Enum", "Interface")) {
|
||||
for (FileTemplate template : manager.getInternalTemplates()) {
|
||||
|
||||
Reference in New Issue
Block a user