Search in sources :

Example 6 with LightTempDirTestFixtureImpl

use of com.intellij.testFramework.fixtures.impl.LightTempDirTestFixtureImpl in project intellij-community by JetBrains.

the class RestFixtureTestCase method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    IdeaTestFixtureFactory factory = IdeaTestFixtureFactory.getFixtureFactory();
    TestFixtureBuilder<IdeaProjectTestFixture> fixtureBuilder = factory.createLightFixtureBuilder(getProjectDescriptor());
    final IdeaProjectTestFixture fixture = fixtureBuilder.getFixture();
    myFixture = IdeaTestFixtureFactory.getFixtureFactory().createCodeInsightFixture(fixture, new LightTempDirTestFixtureImpl(true));
    myFixture.setUp();
    myFixture.setTestDataPath(getTestDataPath());
}
Also used : IdeaProjectTestFixture(com.intellij.testFramework.fixtures.IdeaProjectTestFixture) IdeaTestFixtureFactory(com.intellij.testFramework.fixtures.IdeaTestFixtureFactory) LightTempDirTestFixtureImpl(com.intellij.testFramework.fixtures.impl.LightTempDirTestFixtureImpl)

Aggregations

LightTempDirTestFixtureImpl (com.intellij.testFramework.fixtures.impl.LightTempDirTestFixtureImpl)6 IdeaProjectTestFixture (com.intellij.testFramework.fixtures.IdeaProjectTestFixture)2 IdeaTestFixtureFactory (com.intellij.testFramework.fixtures.IdeaTestFixtureFactory)2 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 NewVirtualFile (com.intellij.openapi.vfs.newvfs.NewVirtualFile)1 LocalSearchScope (com.intellij.psi.search.LocalSearchScope)1 SSBasedInspection (com.intellij.structuralsearch.inspection.highlightTemplate.SSBasedInspection)1 LightProjectDescriptor (com.intellij.testFramework.LightProjectDescriptor)1 LightVirtualFile (com.intellij.testFramework.LightVirtualFile)1 TempDirTestFixture (com.intellij.testFramework.fixtures.TempDirTestFixture)1 ThrowableRunnable (com.intellij.util.ThrowableRunnable)1 IOException (java.io.IOException)1 Test (org.junit.Test)1