本文整理汇总了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);
}
示例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();
}
};
}
示例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);
}
示例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));
}
示例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");
}
};
}
示例6: getProjectDescriptor
import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@NotNull
@Override
protected LightProjectDescriptor getProjectDescriptor() {
return new DefaultLightProjectDescriptor() {
@NotNull
@Override
public ModuleType getModuleType() {
return PluginModuleType.getInstance();
}
};
}
示例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));
}
示例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;
}
示例10: getProjectDescriptor
import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@NotNull
@Override
protected LightProjectDescriptor getProjectDescriptor()
{
return new MyProjectDescriptor();
}
示例11: getProjectDescriptor
import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@Override
@NotNull
protected LightProjectDescriptor getProjectDescriptor() {
return LuaLightProjectDescriptor.INSTANCE;
}
示例12: getProjectDescriptor
import com.intellij.testFramework.LightProjectDescriptor; //导入依赖的package包/类
@Override
protected LightProjectDescriptor getProjectDescriptor() {
return new NeosProjectDescriptor();
}
示例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;
}