File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/test/java/fr/adrienbrault/idea/symfony2plugin/tests Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 55import com .intellij .openapi .vfs .VfsUtil ;
66import com .intellij .openapi .vfs .VirtualFile ;
77import com .intellij .testFramework .UsefulTestCase ;
8- import com .intellij .testFramework .fixtures .IdeaProjectTestFixture ;
9- import com .intellij .testFramework .fixtures .IdeaTestFixtureFactory ;
8+ import com .intellij .testFramework .fixtures .*;
109import fr .adrienbrault .idea .symfony2plugin .Settings ;
11- import org .apache .commons .lang .RandomStringUtils ;
1210import org .apache .commons .lang .StringUtils ;
1311import org .jetbrains .annotations .NotNull ;
1412import org .jetbrains .annotations .Nullable ;
@@ -30,9 +28,10 @@ abstract public class SymfonyTempCodeInsightFixtureTestCase extends UsefulTestCa
3028 public void setUp () throws Exception {
3129 super .setUp ();
3230
33- myFixture = IdeaTestFixtureFactory .getFixtureFactory ()
34- .createFixtureBuilder (RandomStringUtils .randomAlphanumeric (20 ))
35- .getFixture ();
31+ IdeaTestFixtureFactory factory = IdeaTestFixtureFactory .getFixtureFactory ();
32+ TestFixtureBuilder <IdeaProjectTestFixture > fixtureBuilder = factory .createLightFixtureBuilder (new DefaultLightProjectDescriptor ());
33+ IdeaProjectTestFixture fixture = fixtureBuilder .getFixture ();
34+ myFixture = JavaTestFixtureFactory .getFixtureFactory ().createCodeInsightFixture (fixture , IdeaTestFixtureFactory .getFixtureFactory ().createTempDirTestFixture ());
3635
3736 myFixture .setUp ();
3837
You can’t perform that action at this time.
0 commit comments