@Test public void refreshWithActiveProject() { final WorkspaceProject project = mock(WorkspaceProject.class); final Repository repository = mock(Repository.class); doReturn(repository).when(project).getRepository(); doReturn(project).when(activeContextItems).getActiveProject(); activeContextManager.refresh(); verify(explorerService).getContent(queryCaptor.capture()); assertSame(repository, queryCaptor.getValue().getRepository()); }
private void refresh(final ProjectExplorerContentQuery query) { query.setOptions(activeOptions.getOptions()); explorerService.call(contentCallback, new HasBusyIndicatorDefaultErrorCallback(view)).getContent(query); }
ActiveContextManager { private void refresh(final ProjectExplorerContentQuery query) { query.setOptions(activeOptions.getOptions()); explorerService.call(contentCallback, new HasBusyIndicatorDefaultErrorCallback(view)).getContent(query); } }
ActiveContextManager { private void refresh(final ProjectExplorerContentQuery query) { query.setOptions(activeOptions.getOptions()); explorerService.call(contentCallback, new HasBusyIndicatorDefaultErrorCallback(view)).getContent(query); } ActiveContextManager(); @Inject  ActiveContextManager(final ActiveContextItems activeContextItems,
                                final ActiveContextOptions activeOptions,
                                final Caller<ExplorerService> explorerService,
                                final Event<WorkspaceProjectContextChangeEvent> contextChangeEvent); }
ActiveContextManager { private void refresh(final ProjectExplorerContentQuery query) { query.setOptions(activeOptions.getOptions()); explorerService.call(contentCallback, new HasBusyIndicatorDefaultErrorCallback(view)).getContent(query); } ActiveContextManager(); @Inject  ActiveContextManager(final ActiveContextItems activeContextItems,
                                final ActiveContextOptions activeOptions,
                                final Caller<ExplorerService> explorerService,
                                final Event<WorkspaceProjectContextChangeEvent> contextChangeEvent); void init(final View view,
                     final RemoteCallback<ProjectExplorerContent> contentCallback); void initActiveContext(final String path); void initActiveContext(final Repository repository,
                                  final Branch branch); void initActiveContext(final Repository repository,
                                  final Branch branch,
                                  final Module module); void initActiveContext(final Repository repository,
                                  final Branch branch,
                                  final Module module,
                                  final org.guvnor.common.services.project.model.Package pkg); void initActiveContext(final WorkspaceProjectContext context); }
ActiveContextManager { private void refresh(final ProjectExplorerContentQuery query) { query.setOptions(activeOptions.getOptions()); explorerService.call(contentCallback, new HasBusyIndicatorDefaultErrorCallback(view)).getContent(query); } ActiveContextManager(); @Inject  ActiveContextManager(final ActiveContextItems activeContextItems,
                                final ActiveContextOptions activeOptions,
                                final Caller<ExplorerService> explorerService,
                                final Event<WorkspaceProjectContextChangeEvent> contextChangeEvent); void init(final View view,
                     final RemoteCallback<ProjectExplorerContent> contentCallback); void initActiveContext(final String path); void initActiveContext(final Repository repository,
                                  final Branch branch); void initActiveContext(final Repository repository,
                                  final Branch branch,
                                  final Module module); void initActiveContext(final Repository repository,
                                  final Branch branch,
                                  final Module module,
                                  final org.guvnor.common.services.project.model.Package pkg); void initActiveContext(final WorkspaceProjectContext context);  }