use of com.google.idea.blaze.base.model.primitives.Kind.Provider in project intellij by bazelbuild.
the class ReverseDependencyMapTest method initTest.
@Override
protected void initTest(@NotNull Container applicationServices, @NotNull Container projectServices) {
super.initTest(applicationServices, projectServices);
ExtensionPointImpl<Provider> kindProvider = registerExtensionPoint(Kind.Provider.EP_NAME, Kind.Provider.class);
kindProvider.registerExtension(new GenericBlazeRules());
applicationServices.register(Kind.ApplicationState.class, new Kind.ApplicationState());
}
use of com.google.idea.blaze.base.model.primitives.Kind.Provider in project intellij by bazelbuild.
the class BlazeModuleSystemTest method initTest.
@Override
protected void initTest(Container applicationServices, Container projectServices) {
ExtensionPointImpl<Provider> kindProvider = registerExtensionPoint(Kind.Provider.EP_NAME, Kind.Provider.class);
kindProvider.registerExtension(new AndroidBlazeRules());
applicationServices.register(Kind.ApplicationState.class, new Kind.ApplicationState());
module = new MockModule(project, () -> {
});
// For the 'blaze.class.file.finder.name' experiment.
applicationServices.register(ExperimentService.class, new MockExperimentService());
// For Blaze.isBlazeProject.
mockBlazeImportSettings(projectServices);
createMocksForAddDependency(applicationServices, projectServices);
service = new BlazeProjectSystem(project);
}
Aggregations