use of com.google.idea.blaze.base.build.BlazeBuildService in project intellij by bazelbuild.
the class BlazeClassJarProviderTest method initTest.
@Override
protected void initTest(Container applicationServices, Container projectServices) {
applicationServices.register(FileTypeManager.class, new MockFileTypeManager());
applicationServices.register(FileDocumentManager.class, new MockFileDocumentManagerImpl(null, null));
applicationServices.register(VirtualFileManager.class, mock(VirtualFileManager.class));
applicationServices.register(BlazeBuildService.class, new BlazeBuildService(project));
projectServices.register(ProjectScopeBuilder.class, new ProjectScopeBuilderImpl(project));
projectServices.register(ProjectViewManager.class, new MockProjectViewManager());
BlazeProjectDataManager mockProjectDataManager = new MockBlazeProjectDataManager(MockBlazeProjectDataBuilder.builder().build());
projectServices.register(BlazeProjectDataManager.class, mockProjectDataManager);
BlazeImportSettingsManager manager = new BlazeImportSettingsManager(project);
manager.setImportSettings(new BlazeImportSettings("", "", "", "", BuildSystemName.Blaze));
projectServices.register(BlazeImportSettingsManager.class, manager);
projectServices.register(JvmPsiConversionHelper.class, new JvmPsiConversionHelperImpl());
facade = new MockJavaPsiFacade(project, ImmutableList.of("com.google.example.Modified", "com.google.example.NotModified"));
projectServices.register(JavaPsiFacade.class, facade);
module = new MockModule(() -> {
});
}
Aggregations