correct test info - sometimes static methods of LightQuickFixTestCase are called from other tests, so static project instance from LightQuickFixTestCase should not be used

This commit is contained in:
Irina.Chernushina
2017-05-16 13:47:51 +02:00
parent f1bbf359c7
commit bde87d913a
@@ -143,8 +143,8 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
})
.joining(" ");
return "Test: " + testFullPath + "\n" +
"Language level: " + PsiUtil.getLanguageLevel(getProject()) + "\n" +
"SDK: " + ModuleRootManager.getInstance(getModule()).getSdk() + "\n" +
"Language level: " + PsiUtil.getLanguageLevel(quickFix.getProject()) + "\n" +
(quickFix.getProject().equals(getProject()) ? ("SDK: " + ModuleRootManager.getInstance(getModule()).getSdk() + "\n") : "") +
"Infos: " + infos;
}