converted to LightCodeInsightFixtureTestCase

This commit is contained in:
Dmitry Avdeev
2014-11-28 13:34:57 +03:00
parent c19cfc7446
commit 0529daf928
2 changed files with 5 additions and 8 deletions
@@ -152,6 +152,8 @@ public abstract class LightCodeInsightFixtureTestCase extends UsefulTestCase{
return myFixture.getProject();
}
protected PsiFile getFile() { return myFixture.getFile(); }
protected PsiManager getPsiManager() {
return PsiManager.getInstance(getProject());
}
@@ -24,13 +24,13 @@ import com.intellij.javaee.ExternalResourceManagerExImpl;
import com.intellij.openapi.application.Result;
import com.intellij.openapi.command.WriteCommandAction;
import com.intellij.testFramework.IdeaTestCase;
import com.intellij.testFramework.fixtures.CodeInsightFixtureTestCase;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
import org.jetbrains.annotations.NotNull;
/**
* @author Dmitry Avdeev
*/
public class XmlNamespacesTest extends CodeInsightFixtureTestCase {
public class XmlNamespacesTest extends LightCodeInsightFixtureTestCase {
@SuppressWarnings("JUnitTestCaseWithNonTrivialConstructors")
public XmlNamespacesTest() {
@@ -190,7 +190,7 @@ public class XmlNamespacesTest extends CodeInsightFixtureTestCase {
" xsi:schemaLocation=\"http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd\n" +
" http://www.w3.org/2001/XInclude http://www.w3.org/2001/XInclude.xsd\">\n" +
"\n" +
" <<error descr=\"An 'include' failed, and no 'fallback' element was found.\">include</error> xmlns=\"http://www.w3.org/2001/XInclude\" href=\"<error descr=\"Cannot resolve file 'a.xml'\">a.xml</error>\"/>\n" +
" <include xmlns=\"http://www.w3.org/2001/XInclude\" href=\"a.xml\"/>\n" +
"</x:all>");
myFixture.testHighlighting();
}
@@ -289,9 +289,4 @@ public class XmlNamespacesTest extends CodeInsightFixtureTestCase {
protected String getBasePath() {
return "/xml/tests/testData/unusedNs";
}
@Override
protected boolean isCommunity() {
return true;
}
}