mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
34 lines
1020 B
Java
34 lines
1020 B
Java
package com.intellij.codeInsight.intention;
|
|
|
|
import com.intellij.codeInsight.daemon.LightIntentionActionTestCase;
|
|
import com.intellij.psi.codeStyle.CodeStyleSettings;
|
|
import com.intellij.psi.codeStyle.CodeStyleSettingsManager;
|
|
|
|
/**
|
|
* @author yole
|
|
*/
|
|
public class CopyAbstractMethodImplementationTest extends LightIntentionActionTestCase {
|
|
@Override
|
|
protected String getBasePath() {
|
|
return "/codeInsight/daemonCodeAnalyzer/quickFix/copyAbstractMethodImplementation";
|
|
}
|
|
|
|
@Override
|
|
protected void setUp() throws Exception {
|
|
super.setUp();
|
|
CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(getProject()).clone();
|
|
settings.INSERT_OVERRIDE_ANNOTATION = false;
|
|
CodeStyleSettingsManager.getInstance(getProject()).setTemporarySettings(settings);
|
|
}
|
|
|
|
@Override
|
|
protected void tearDown() throws Exception {
|
|
CodeStyleSettingsManager.getInstance(getProject()).dropTemporarySettings();
|
|
super.tearDown();
|
|
}
|
|
|
|
public void test() throws Exception {
|
|
doAllTests();
|
|
}
|
|
}
|