use of com.google.idea.common.experiments.MockExperimentService in project intellij by bazelbuild.
the class BlazeCommandTest method initTest.
@Override
protected void initTest(@NotNull Container applicationServices, @NotNull Container projectServices) {
ExperimentService experimentService = new MockExperimentService();
applicationServices.register(ExperimentService.class, experimentService);
applicationServices.register(BlazeUserSettings.class, new BlazeUserSettings());
}
use of com.google.idea.common.experiments.MockExperimentService in project intellij by bazelbuild.
the class FileDifferTest method initTest.
@Override
protected void initTest(@NotNull Container applicationServices, @NotNull Container projectServices) {
super.initTest(applicationServices, projectServices);
applicationServices.register(ExperimentService.class, new MockExperimentService());
applicationServices.register(BlazeExecutor.class, new MockBlazeExecutor());
this.fileModificationProvider = new MockFileOperationProvider();
applicationServices.register(FileOperationProvider.class, fileModificationProvider);
}
use of com.google.idea.common.experiments.MockExperimentService in project intellij by bazelbuild.
the class TestMapTest method initTest.
@Override
protected void initTest(@NotNull Container applicationServices, @NotNull Container projectServices) {
super.initTest(applicationServices, projectServices);
applicationServices.register(ExperimentService.class, new MockExperimentService());
mockBlazeProjectDataManager = new MockBlazeProjectDataManager();
projectServices.register(BlazeProjectDataManager.class, mockBlazeProjectDataManager);
projectServices.register(SyncCache.class, new SyncCache(project));
ExtensionPointImpl<SourceToTargetFinder> ep = registerExtensionPoint(SourceToTargetFinder.EP_NAME, SourceToTargetFinder.class);
ep.registerExtension(new ProjectSourceToTargetFinder());
}
use of com.google.idea.common.experiments.MockExperimentService in project intellij by bazelbuild.
the class LabelTest method initTest.
@Override
protected void initTest(@NotNull Container applicationServices, @NotNull Container projectServices) {
super.initTest(applicationServices, projectServices);
applicationServices.register(ExperimentService.class, new MockExperimentService());
}
use of com.google.idea.common.experiments.MockExperimentService in project intellij by bazelbuild.
the class BlazeGoRootsProviderTest method init.
@Before
public void init() {
MockExperimentService experimentService = new MockExperimentService();
experimentService.setExperiment(BlazeGoSupport.blazeGoSupportEnabled, true);
registerApplicationComponent(ExperimentService.class, experimentService);
fileOperationProvider = new MockFileOperationProvider();
registerApplicationService(FileOperationProvider.class, fileOperationProvider);
}
Aggregations