当前位置: 首页>>代码示例>>Java>>正文


Java PlatformTestUtil.getCommunityPath方法代码示例

本文整理汇总了Java中com.intellij.testFramework.PlatformTestUtil.getCommunityPath方法的典型用法代码示例。如果您正苦于以下问题:Java PlatformTestUtil.getCommunityPath方法的具体用法?Java PlatformTestUtil.getCommunityPath怎么用?Java PlatformTestUtil.getCommunityPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.testFramework.PlatformTestUtil的用法示例。


在下文中一共展示了PlatformTestUtil.getCommunityPath方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
@Override
protected void setUp() throws Exception {
  String path = PlatformTestUtil.getCommunityPath() + "/platform/platform-tests/testData/badPlugins";
  File directory = createTempDirectory(false);
  FileUtil.copyDir(new File(path), directory);

  System.setProperty(PathManager.PROPERTY_CONFIG_PATH, directory.getPath());
  System.out.println("Old path: " + myOldConfigPath);
  System.out.println("New path: " + System.getProperty(PathManager.PROPERTY_CONFIG_PATH));
  super.setUp();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:BadPluginTest.java

示例2: loadDescriptor

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
private IdeaPluginDescriptor loadDescriptor(String filePath) throws InvalidDataException, FileNotFoundException, MalformedURLException {
  String path = PlatformTestUtil.getCommunityPath() + "/platform/platform-tests/testData/updates/customRepositories/" + getTestName(true) + "/";
  final File descriptorFile = new File(path, filePath);
  IdeaPluginDescriptorImpl descriptor = new IdeaPluginDescriptorImpl(descriptorFile.getParentFile());
  descriptor.readExternal(descriptorFile.toURI().toURL());
  return descriptor;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:UpdatePluginsFromCustomRepositoryTest.java

示例3: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
@NotNull
@Override
protected String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/java/typeMigration/testData";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ConvertToAtomicIntentionTest.java

示例4: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
@Override
protected String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/java/typeMigration/testData";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:TypeMigrationTestBase.java

示例5: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
/**
 * Return absolute path to the test data. Not intended to be overridden.
 *
 * @return absolute path to the test data.
 */
@NonNls
protected final String getTestDataPath() {
  String path = isCommunity() ? PlatformTestUtil.getCommunityPath() : PathManager.getHomePath();
  return path.replace(File.separatorChar, '/') + getBasePath();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:CodeInsightFixtureTestCase.java

示例6: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
private static String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/platform/platform-tests/testData/projectSet/";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ProjectSetTest.java

示例7: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
@NotNull
@Override
protected String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/platform/structuralsearch/testData/";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:StructuralReplaceTest.java

示例8: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
protected String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/platform/structuralsearch/testData/ssBased";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:SSRCodeInsightTest.java

示例9: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
protected String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/platform/structuralsearch/testData/";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:SSBasedInspectionTest.java

示例10: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
@NotNull
@Override
protected String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/platform/structuralsearch/testData/java/";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:StructuralSearchTest.java

示例11: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
@Override
protected String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/json/tests/testData";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:JsonParsingTest.java

示例12: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
@NotNull
@Override
protected String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/xml/tests/testData/documentation/";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:XmlDocumentationTest.java

示例13: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
@Override
@NotNull
protected String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/xml/tests/testData/intentions/splitTag";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:SplitTagActionTest.java

示例14: getTestDataBasePath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
public static String getTestDataBasePath() {
  return PlatformTestUtil.getCommunityPath() + "/xml/relaxng/testData/";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:HighlightingTestBase.java

示例15: getTestDataPath

import com.intellij.testFramework.PlatformTestUtil; //导入方法依赖的package包/类
@Override
protected String getTestDataPath() {
  return PlatformTestUtil.getCommunityPath() + "/xml/relaxng/testData/parsing";
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:AbstractParsingTest.java


注:本文中的com.intellij.testFramework.PlatformTestUtil.getCommunityPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。