fixed tests for Linux

This commit is contained in:
Alexey Kudravtsev
2010-10-06 12:38:54 +04:00
parent 7adb624794
commit fbf92e3cb2
15 changed files with 11 additions and 11 deletions
@@ -25,13 +25,13 @@ public class MakeClassStaticTest extends LightCodeInsightTestCase {
return JavaTestUtil.getJavaTestDataPath();
}
public void testSimple() throws Exception { perform(); }
public void testSimple1() throws Exception { perform(); }
public void testSimpleWithFields() throws Exception { performWithFields(); }
public void testSimpleFields() throws Exception { performWithFields(); }
public void testFieldInitializerMovedToConstructor() throws Exception { performWithFields(); }
public void testFieldInitializerMovedToTheConstructor() throws Exception { performWithFields(); }
public void testQualifiedThisInSibling() throws Exception { perform(); }
public void testQualifiedThis() throws Exception { perform(); }
public void testIDEADEV3247() throws Exception { perform(); }
@@ -39,16 +39,16 @@ public class MakeClassStaticTest extends LightCodeInsightTestCase {
public void testIDEADEV12762() throws Exception { perform(); }
public void testNewExpressionQualifications() throws Exception {perform();}
public void testNewExpressionQualifier() throws Exception {perform();}
public void testNonDefaultConstructorAnonymousClass() throws Exception {perform();}
public void testDefaultConstructorAnonymousClass() throws Exception {perform();}
public void testRegularReference() throws Exception {
public void testRegReference() throws Exception {
perform();
}
public void testFieldWithPrefix() throws Exception {
public void testFieldWithMyPrefix() throws Exception {
final CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(getProject());
String oldPrefix = settings.FIELD_NAME_PREFIX;
settings.FIELD_NAME_PREFIX = "my";
@@ -61,7 +61,7 @@ public class MakeClassStaticTest extends LightCodeInsightTestCase {
}
private void perform() throws Exception {
configureByFile(TEST_ROOT + getTestName(true) + ".java");
configureByFile(TEST_ROOT + getTestName(false) + ".java");
PsiElement element = TargetElementUtilBase.findTargetElement(myEditor, TargetElementUtilBase.ELEMENT_NAME_ACCEPTED);
assertTrue(element instanceof PsiClass);
PsiClass aClass = (PsiClass)element;
@@ -72,11 +72,11 @@ public class MakeClassStaticTest extends LightCodeInsightTestCase {
getProject(),
aClass,
new Settings(true, addClassParameter ? "anObject" : null, null)).run();
checkResultByFile(TEST_ROOT + getTestName(true) + "_after.java");
checkResultByFile(TEST_ROOT + getTestName(false) + "_after.java");
}
private void performWithFields() throws Exception {
configureByFile(TEST_ROOT + getTestName(true) + ".java");
configureByFile(TEST_ROOT + getTestName(false) + ".java");
PsiElement element = TargetElementUtilBase.findTargetElement(myEditor, TargetElementUtilBase.ELEMENT_NAME_ACCEPTED);
assertTrue(element instanceof PsiClass);
PsiClass aClass = (PsiClass)element;
@@ -89,6 +89,6 @@ public class MakeClassStaticTest extends LightCodeInsightTestCase {
new Settings(true, addClassParameter ? "anObject" : null,
parametersForFields.toArray(
new ParameterTablePanel.VariableData[parametersForFields.size()]))).run();
checkResultByFile(TEST_ROOT + getTestName(true) + "_after.java");
checkResultByFile(TEST_ROOT + getTestName(false) + "_after.java");
}
}