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


Java LightProjectDescriptor类代码示例

本文整理汇总了Java中com.intellij.testFramework.LightProjectDescriptor的典型用法代码示例。如果您正苦于以下问题:Java LightProjectDescriptor类的具体用法?Java LightProjectDescriptor怎么用?Java LightProjectDescriptor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: main

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
  //noinspection SSBasedInspection
  SwingUtilities.invokeAndWait(new Runnable() {
    @Override
    public void run() {
      try {
        IdeaTestFixture fixture = IdeaTestFixtureFactory.getFixtureFactory().createLightFixtureBuilder(LightProjectDescriptor.EMPTY_PROJECT_DESCRIPTOR).getFixture();
        fixture.setUp();
        long start = System.currentTimeMillis();
        runTest(200, "All names in cache");
        runTest(50000, "Cache almost overflows");
        runTest(120000, "Cache certain overflow");
        long elapsed = System.currentTimeMillis() - start;
        System.out.println("Total elapsed: " + elapsed/1000.0 +"s");

        fixture.tearDown();
      }
      catch (Exception e) {
        throw new RuntimeException(e);
      }
    }
  });

  System.exit(0);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:FileNameCacheMicroBenchmark.java

示例2: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@NotNull
@Override
protected LightProjectDescriptor getProjectDescriptor() {
    return new LightProjectDescriptor() {
        @Nullable
        @Override
        public Sdk getSdk() {
            return JavaAwareProjectJdkTableImpl.getInstanceEx().getInternalJdk();
        }
    };
}
 
开发者ID:TNG,项目名称:jgiven-intellij-plugin,代码行数:12,代码来源:BaseTestCase.java

示例3: SwaggerFixture

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
private SwaggerFixture(@NotNull String folderAbsolutePath) throws Exception {
    IdeaTestFixtureFactory factory = IdeaTestFixtureFactory.getFixtureFactory();
    LightProjectDescriptor projectDescriptor = LightProjectDescriptor.EMPTY_PROJECT_DESCRIPTOR;
    TestFixtureBuilder<IdeaProjectTestFixture> fixtureBuilder = factory.createLightFixtureBuilder(projectDescriptor);
    IdeaProjectTestFixture fixture = fixtureBuilder.getFixture();

    myCodeInsightFixture = factory.createCodeInsightFixture(fixture, new LightTempDirTestFixtureImpl(true));
    myCodeInsightFixture.setUp();
    myCodeInsightFixture.setTestDataPath(folderAbsolutePath);
}
 
开发者ID:zalando,项目名称:intellij-swagger,代码行数:11,代码来源:SwaggerFixture.java

示例4: createLightFixtureBuilder

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@NotNull
@Override
public TestFixtureBuilder<IdeaProjectTestFixture> createLightFixtureBuilder(@Nullable LightProjectDescriptor projectDescriptor) {
  if (projectDescriptor == null) {
    projectDescriptor = LightProjectDescriptor.EMPTY_PROJECT_DESCRIPTOR;
  }
  return new LightTestFixtureBuilderImpl<IdeaProjectTestFixture>(new LightIdeaTestFixtureImpl(projectDescriptor));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:IdeaTestFixtureFactoryImpl.java

示例5: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@Nullable
@Override
protected LightProjectDescriptor getProjectDescriptor() {
  return new PyLightProjectDescriptor(PYTHON_3_MOCK_SDK) {
    @Override
    public void configureModule(Module module, ModifiableRootModel model, ContentEntry contentEntry) {
      createLibrary(model, "pyiStubs", "/community/python/testData/pyi/pyiStubs");
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:PyiTypeTest.java

示例6: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@NotNull
@Override
protected LightProjectDescriptor getProjectDescriptor() {
  return new DefaultLightProjectDescriptor() {
    @NotNull
    @Override
    public ModuleType getModuleType() {
      return PluginModuleType.getInstance();
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:PluginModuleTestCase.java

示例7: createLightFixtureBuilder

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@Override
public TestFixtureBuilder<IdeaProjectTestFixture> createLightFixtureBuilder(@Nullable LightProjectDescriptor projectDescriptor) {
  if (projectDescriptor == null) {
    projectDescriptor = LightProjectDescriptor.EMPTY_PROJECT_DESCRIPTOR;
  }
  return new LightTestFixtureBuilderImpl<IdeaProjectTestFixture>(new LightIdeaTestFixtureImpl(projectDescriptor));
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:8,代码来源:IdeaTestFixtureFactoryImpl.java

示例8: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@NotNull
@Override
protected LightProjectDescriptor getProjectDescriptor() {
  return new DefaultLightProjectDescriptor() {
    @Override
    public Sdk getSdk() {
      return JavaSdk.getInstance().createJdk("java 1.7", "lib/mockJDK-1.7", false);
    }

    @Override
    public void configureModule(@NotNull Module module, @NotNull ModifiableRootModel model, @NotNull ContentEntry contentEntry) {
      model.getModuleExtension(LanguageLevelModuleExtension.class).setLanguageLevel(LanguageLevel.JDK_1_7);
    }
  };
}
 
开发者ID:mplushnikov,项目名称:lombok-intellij-plugin,代码行数:16,代码来源:AbstractLombokLightCodeInsightTestCase.java

示例9: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@NotNull
protected LightProjectDescriptor getProjectDescriptor()
{
  return JAVA_LATEST;
}
 
开发者ID:manifold-systems,项目名称:manifold-ij,代码行数:6,代码来源:SomewhatLightCodeInsightFixtureTestCase.java

示例10: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@NotNull
@Override
protected LightProjectDescriptor getProjectDescriptor()
{
  return new MyProjectDescriptor();
}
 
开发者ID:manifold-systems,项目名称:manifold-ij,代码行数:7,代码来源:AbstractManifoldCodeInsightTest.java

示例11: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@Override
@NotNull
protected LightProjectDescriptor getProjectDescriptor() {
    return LuaLightProjectDescriptor.INSTANCE;
}
 
开发者ID:internetisalie,项目名称:lua-for-idea,代码行数:6,代码来源:LightLuaTestCase.java

示例12: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@Override
protected LightProjectDescriptor getProjectDescriptor() {
    return new NeosProjectDescriptor();
}
 
开发者ID:cvette,项目名称:intellij-neos,代码行数:5,代码来源:NodeTypeReferencesTest.java

示例13: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@NotNull
@Override
protected LightProjectDescriptor getProjectDescriptor() {
    return super.getProjectDescriptor();
}
 
开发者ID:jimkyndemeyer,项目名称:react-css-modules-intellij-plugin,代码行数:6,代码来源:CssModulesCodeInsightTest.java

示例14: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
protected LightProjectDescriptor getProjectDescriptor() {
    return null;
}
 
开发者ID:dnltsk,项目名称:intellij-geocoding-plugin,代码行数:4,代码来源:LightPlatformCodeInsightFixtureTestCase.java

示例15: getProjectDescriptor

import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@NotNull
@Override
protected LightProjectDescriptor getProjectDescriptor() {
  return JAVA_1_6;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:LightFixtureCompletionTestCase.java


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