mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java-tests module introduced
This commit is contained in:
Generated
+1
@@ -29,6 +29,7 @@
|
||||
<module fileurl="file://$PROJECT_DIR$/plugins/java-i18n/java-i18n.iml" filepath="$PROJECT_DIR$/plugins/java-i18n/java-i18n.iml" group="plugins" />
|
||||
<module fileurl="file://$PROJECT_DIR$/java/java-impl/java-impl.iml" filepath="$PROJECT_DIR$/java/java-impl/java-impl.iml" group="java" />
|
||||
<module fileurl="file://$PROJECT_DIR$/java/java-runtime/java-runtime.iml" filepath="$PROJECT_DIR$/java/java-runtime/java-runtime.iml" group="java" />
|
||||
<module fileurl="file://$PROJECT_DIR$/java/java-tests/java-tests.iml" filepath="$PROJECT_DIR$/java/java-tests/java-tests.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/java/compiler/javac2/javac2.iml" filepath="$PROJECT_DIR$/java/compiler/javac2/javac2.iml" group="java/compiler" />
|
||||
<module fileurl="file://$PROJECT_DIR$/plugins/cvs/javacvs-src/javacvs-src.iml" filepath="$PROJECT_DIR$/plugins/cvs/javacvs-src/javacvs-src.iml" group="plugins/cvs" />
|
||||
<module fileurl="file://$PROJECT_DIR$/java/jsp-base-openapi/jsp-base-openapi.iml" filepath="$PROJECT_DIR$/java/jsp-base-openapi/jsp-base-openapi.iml" group="java" />
|
||||
|
||||
@@ -53,6 +53,11 @@
|
||||
<orderEntry type="module" module-name="xml" />
|
||||
<orderEntry type="module" module-name="xml-openapi" />
|
||||
<orderEntry type="module" module-name="community-resources" />
|
||||
<orderEntry type="module" module-name="java-tests" />
|
||||
<orderEntry type="module" module-name="copyright" />
|
||||
<orderEntry type="module" module-name="cvs-plugin" />
|
||||
<orderEntry type="module" module-name="java-i18n" />
|
||||
<orderEntry type="module" module-name="ui-designer" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module relativePaths="true" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/testSrc" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="testFramework-java" />
|
||||
<orderEntry type="module" module-name="java-impl" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.intellij;
|
||||
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* @author yole
|
||||
*/
|
||||
public class JavaTestUtil {
|
||||
@NonNls private static final String JAVA_TEST_DATA = "java/java-tests/testData";
|
||||
|
||||
public static String getJavaTestDataPath() {
|
||||
final String homePath = PathManager.getHomePath();
|
||||
File dir = new File(homePath, "community/" + JAVA_TEST_DATA);
|
||||
if (dir.exists()) {
|
||||
return dir.getPath();
|
||||
}
|
||||
return new File(homePath, JAVA_TEST_DATA).getPath();
|
||||
}
|
||||
}
|
||||
+6
@@ -1,5 +1,6 @@
|
||||
package com.intellij.refactoring;
|
||||
|
||||
import com.intellij.JavaTestUtil;
|
||||
import com.intellij.codeInsight.CodeInsightTestCase;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.openapi.projectRoots.impl.JavaSdkImpl;
|
||||
@@ -11,6 +12,11 @@ import com.intellij.refactoring.anonymousToInner.AnonymousToInnerHandler;
|
||||
public class AnonymousToInnerTest extends CodeInsightTestCase {
|
||||
private static final String TEST_ROOT = "/refactoring/anonymousToInner/";
|
||||
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return JavaTestUtil.getJavaTestDataPath();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Sdk getTestProjectJdk() {
|
||||
return JavaSdkImpl.getMockJdk15("java 1.5");
|
||||
Reference in New Issue
Block a user