File tree 1 file changed +5
-6
lines changed
src/test/java/fr/adrienbrault/idea/symfony2plugin/tests 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 5
5
import com .intellij .openapi .vfs .VfsUtil ;
6
6
import com .intellij .openapi .vfs .VirtualFile ;
7
7
import com .intellij .testFramework .UsefulTestCase ;
8
- import com .intellij .testFramework .fixtures .IdeaProjectTestFixture ;
9
- import com .intellij .testFramework .fixtures .IdeaTestFixtureFactory ;
8
+ import com .intellij .testFramework .fixtures .*;
10
9
import fr .adrienbrault .idea .symfony2plugin .Settings ;
11
- import org .apache .commons .lang .RandomStringUtils ;
12
10
import org .apache .commons .lang .StringUtils ;
13
11
import org .jetbrains .annotations .NotNull ;
14
12
import org .jetbrains .annotations .Nullable ;
@@ -30,9 +28,10 @@ abstract public class SymfonyTempCodeInsightFixtureTestCase extends UsefulTestCa
30
28
public void setUp () throws Exception {
31
29
super .setUp ();
32
30
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 ());
36
35
37
36
myFixture .setUp ();
38
37
You can’t perform that action at this time.
0 commit comments