Java 类com.intellij.openapi.editor.LazyRangeMarkerFactory 实例源码

项目:intellij    文件:BlazeBuildSystemServiceTest.java   
private void createMocksForAddDependency(
    Container applicationServices, Container projectServices) {
  projectServices.register(
      BlazeProjectDataManager.class,
      new MockBlazeProjectDataManager(createMockBlazeProjectData()));
  projectServices.register(FileEditorManager.class, mock(FileEditorManager.class));
  projectServices.register(BuildReferenceManager.class, mock(BuildReferenceManager.class));
  projectServices.register(LazyRangeMarkerFactory.class, mock(LazyRangeMarkerFactoryImpl.class));

  applicationServices.register(
      VirtualFileSystemProvider.class, new MockVirtualFileSystemProvider("/foo/BUILD"));

  AndroidResourceModuleRegistry moduleRegistry = new AndroidResourceModuleRegistry();
  moduleRegistry.put(
      module,
      AndroidResourceModule.builder(TargetKey.forPlainTarget(Label.create("//foo:bar"))).build());
  projectServices.register(AndroidResourceModuleRegistry.class, moduleRegistry);
}