teaching to behave itself

This commit is contained in:
Dmitry Avdeev
2010-04-23 16:46:47 +04:00
parent 077d4bb187
commit 424b060705
3 changed files with 13 additions and 0 deletions
@@ -20,6 +20,7 @@ import com.intellij.openapi.application.Result;
import com.intellij.openapi.command.WriteCommandAction;
import com.intellij.openapi.fileTypes.FileTypeManager;
import com.intellij.openapi.project.Project;
import com.intellij.testFramework.PlatformTestCase;
import com.intellij.testFramework.fixtures.CodeInsightTestFixture;
import com.intellij.testFramework.fixtures.IdeaProjectTestFixture;
import com.intellij.testFramework.fixtures.IdeaTestFixtureFactory;
@@ -32,6 +33,11 @@ import java.io.File;
public abstract class BaseParseTestcase extends TestCase {
protected CodeInsightTestFixture myFixture;
@SuppressWarnings({"JUnitTestCaseWithNonTrivialConstructors"})
public BaseParseTestcase() {
PlatformTestCase.initPlatformLangPrefix();
}
protected void setUp() throws Exception {
super.setUp();
final IdeaTestFixtureFactory fixtureFactory = IdeaTestFixtureFactory.getFixtureFactory();
@@ -8,6 +8,7 @@
<xi:include href="/META-INF/PlatformLangPlugin.xml" xpointer="xpointer(/idea-plugin/*)"/>
<xi:include href="/META-INF/XmlPlugin.xml" xpointer="xpointer(/idea-plugin/*)"/>
<xi:include href="/META-INF/ImagesPlugin.xml" xpointer="xpointer(/idea-plugin/*)"/>
<xi:include href="/META-INF/RegExpPlugin.xml" xpointer="xpointer(/idea-plugin/*)"/>
<module value="com.intellij.modules.xml"/>
</idea-plugin>
+6
View File
@@ -16,6 +16,12 @@
<orderEntry type="module" module-name="vcs-api" exported="" />
<orderEntry type="module" module-name="lvcs-impl" />
<orderEntry type="module" module-name="tests_bootstrap" />
<orderEntry type="module" module-name="RegExpSupport" scope="RUNTIME" />
<orderEntry type="module" module-name="images" scope="RUNTIME" />
<orderEntry type="module" module-name="xdebugger-impl" scope="RUNTIME" />
<orderEntry type="module" module-name="resources-en" scope="RUNTIME" />
<orderEntry type="module" module-name="community-resources" scope="RUNTIME" />
<orderEntry type="module" module-name="platform-ultimate" scope="RUNTIME" />
</component>
</module>