mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
39 lines
1.1 KiB
Java
39 lines
1.1 KiB
Java
package com.intellij.codeInsight.daemon.quickFix;
|
|
|
|
import com.intellij.psi.codeStyle.CodeStyleSettings;
|
|
import com.intellij.psi.codeStyle.CodeStyleSettingsManager;
|
|
import com.intellij.codeInsight.daemon.LightIntentionActionTestCase;
|
|
import org.jdom.Element;
|
|
|
|
/**
|
|
* @author ven
|
|
*/
|
|
public class AssignFieldFromParameterTest extends LightIntentionActionTestCase {
|
|
private Element myOldSettings;
|
|
|
|
@Override
|
|
protected void setUp() throws Exception {
|
|
super.setUp();
|
|
CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(getProject());
|
|
myOldSettings = new Element("dummy2");
|
|
settings.writeExternal(myOldSettings);
|
|
settings.FIELD_NAME_PREFIX = "my";
|
|
settings.STATIC_FIELD_NAME_PREFIX = "our";
|
|
}
|
|
|
|
@Override
|
|
protected void tearDown() throws Exception {
|
|
CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(getProject());
|
|
settings.readExternal(myOldSettings);
|
|
super.tearDown();
|
|
}
|
|
|
|
public void test() throws Exception { doAllTests(); }
|
|
|
|
@Override
|
|
protected String getBasePath() {
|
|
return "/codeInsight/daemonCodeAnalyzer/quickFix/assignFieldFromParameter";
|
|
}
|
|
|
|
}
|