blob: 2e1b839c85d3ad6cbbd14f27088f3441e0fff3c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.siyeh.ig.style;
import com.intellij.psi.codeStyle.CodeStyleSettings;
import com.intellij.psi.codeStyle.CodeStyleSettingsManager;
import com.siyeh.ig.IGInspectionTestCase;
public class UnnecessaryFullyQualifiedNameInspectionTest extends IGInspectionTestCase {
public void test() throws Exception {
final CodeStyleSettings styleSettings = CodeStyleSettingsManager.getSettings(getProject());
boolean inJavadoc = styleSettings.USE_FQ_CLASS_NAMES_IN_JAVADOC;
try {
styleSettings.USE_FQ_CLASS_NAMES_IN_JAVADOC = false;
doTest("com/siyeh/igtest/style/unnecessary_fully_qualified_name",
new UnnecessaryFullyQualifiedNameInspection());
}
finally {
styleSettings.USE_FQ_CLASS_NAMES_IN_JAVADOC = inJavadoc;
}
}
}
|