Search in sources :

Example 6 with ActiveOptions

use of org.kie.workbench.common.screens.explorer.service.ActiveOptions in project kie-wb-common by kiegroup.

the class ProjectExplorerContentResolverTest method testResolveWithOUWithRepositoryNullQueryTechnicalView.

@Test
public void testResolveWithOUWithRepositoryNullQueryTechnicalView() throws Exception {
    final ProjectExplorerContentQuery query = new ProjectExplorerContentQuery(repository, masterBranch);
    final ActiveOptions options = new ActiveOptions();
    options.add(Option.TREE_NAVIGATOR);
    options.add(Option.EXCLUDE_HIDDEN_ITEMS);
    options.add(Option.TECHNICAL_CONTENT);
    query.setOptions(options);
    resolver.resolve(query);
}
Also used : ActiveOptions(org.kie.workbench.common.screens.explorer.service.ActiveOptions) ProjectExplorerContentQuery(org.kie.workbench.common.screens.explorer.service.ProjectExplorerContentQuery) Test(org.junit.Test)

Example 7 with ActiveOptions

use of org.kie.workbench.common.screens.explorer.service.ActiveOptions in project kie-wb-common by kiegroup.

the class BaseViewPresenterTest method setup.

@Before
public void setup() {
    when(view.getExplorer()).thenReturn(mock(Explorer.class));
    when(explorerServiceActual.getContent(any(ProjectExplorerContentQuery.class))).thenReturn(content);
    when(activeOptions.getOptions()).thenReturn(new ActiveOptions());
}
Also used : ActiveOptions(org.kie.workbench.common.screens.explorer.service.ActiveOptions) ProjectExplorerContentQuery(org.kie.workbench.common.screens.explorer.service.ProjectExplorerContentQuery) Explorer(org.kie.workbench.common.screens.explorer.client.widgets.navigator.Explorer) Before(org.junit.Before)

Aggregations

ActiveOptions (org.kie.workbench.common.screens.explorer.service.ActiveOptions)7 ProjectExplorerContentQuery (org.kie.workbench.common.screens.explorer.service.ProjectExplorerContentQuery)7 Test (org.junit.Test)3 Before (org.junit.Before)2 Explorer (org.kie.workbench.common.screens.explorer.client.widgets.navigator.Explorer)2 WorkspaceProject (org.guvnor.common.services.project.model.WorkspaceProject)1 Branch (org.guvnor.structure.repositories.Branch)1 ProjectExplorerContent (org.kie.workbench.common.screens.explorer.model.ProjectExplorerContent)1 Path (org.uberfire.backend.vfs.Path)1