RUBY-13071: making RegExpCompletionTest runnable

This commit is contained in:
Oleg Sukhodolsky
2013-02-09 15:10:33 +04:00
parent e227a3d793
commit d84f08cb61
2 changed files with 9 additions and 1 deletions
+1
View File
@@ -19,6 +19,7 @@
<orderEntry type="module" module-name="relaxng" scope="RUNTIME" />
<orderEntry type="module" module-name="spellchecker" scope="RUNTIME" />
<orderEntry type="module" module-name="xdebugger-impl" scope="RUNTIME" />
<orderEntry type="module" module-name="resources" scope="TEST" />
</component>
</module>
@@ -16,6 +16,7 @@
package test;
import com.intellij.openapi.application.PathManager;
import com.intellij.testFramework.PlatformTestCase;
import com.intellij.testFramework.fixtures.CodeInsightFixtureTestCase;
import com.intellij.util.ArrayUtil;
import org.intellij.lang.regexp.psi.impl.RegExpPropertyImpl;
@@ -32,7 +33,13 @@ import java.util.Arrays;
*/
public class RegExpCompletionTest extends CodeInsightFixtureTestCase {
// util methods
@Override
protected void setUp() throws Exception {
PlatformTestCase.initPlatformLangPrefix();
super.setUp();
}
// util methods
private static String getInputDataFileName(String testName) {
return Character.toUpperCase(testName.charAt(0)) + testName.substring(1) + ".regexp";
}