use of com.google.idea.blaze.kotlin.KotlinBlazeRules in project intellij by bazelbuild.
the class KotlinSyncAugmenterTest method initTest.
@Override
protected void initTest(@NotNull Container applicationServices, @NotNull Container projectServices) {
super.initTest(applicationServices, projectServices);
ExtensionPointImpl<BlazeSyncPlugin> syncPlugins = registerExtensionPoint(BlazeSyncPlugin.EP_NAME, BlazeSyncPlugin.class);
syncPlugins.registerExtension(new BlazeJavaSyncPlugin());
syncPlugins.registerExtension(new BlazeKotlinSyncPlugin());
BlazeContext context = BlazeContext.create();
context.addOutputSink(IssueOutput.class, errorCollector);
ExtensionPointImpl<Kind.Provider> ep = registerExtensionPoint(Kind.Provider.EP_NAME, Kind.Provider.class);
ep.registerExtension(new JavaBlazeRules());
ep.registerExtension(new KotlinBlazeRules());
applicationServices.register(Kind.ApplicationState.class, new Kind.ApplicationState());
MockExperimentService experimentService = new MockExperimentService();
applicationServices.register(ExperimentService.class, experimentService);
augmenters = registerExtensionPoint(BlazeJavaSyncAugmenter.EP_NAME, BlazeJavaSyncAugmenter.class);
augmenters.registerExtension(new KotlinSyncAugmenter());
}
Aggregations