Search in sources :

Example 1 with WorkspaceMetacardFilter

use of org.codice.ddf.catalog.ui.query.monitor.api.WorkspaceMetacardFilter in project ddf by codice.

the class TestWorkspaceServiceImpl method setup.

@Before
public void setup() {
    catalogFramework = mock(CatalogFramework.class);
    filterBuilder = mock(FilterBuilder.class);
    workspaceTransformer = mock(WorkspaceTransformer.class);
    filterService = mock(FilterService.class);
    securityService = mock(SecurityService.class);
    WorkspaceMetacardFilter workspaceMetacardFilter = mock(WorkspaceMetacardFilter.class);
    when(workspaceMetacardFilter.filter(any())).thenReturn(true);
    workspaceService = new WorkspaceServiceImpl(catalogFramework, filterBuilder, workspaceTransformer, filterService, securityService);
}
Also used : WorkspaceMetacardFilter(org.codice.ddf.catalog.ui.query.monitor.api.WorkspaceMetacardFilter) WorkspaceTransformer(org.codice.ddf.catalog.ui.metacard.workspace.WorkspaceTransformer) FilterBuilder(ddf.catalog.filter.FilterBuilder) SecurityService(org.codice.ddf.catalog.ui.query.monitor.api.SecurityService) CatalogFramework(ddf.catalog.CatalogFramework) FilterService(org.codice.ddf.catalog.ui.query.monitor.api.FilterService) Before(org.junit.Before)

Aggregations

CatalogFramework (ddf.catalog.CatalogFramework)1 FilterBuilder (ddf.catalog.filter.FilterBuilder)1 WorkspaceTransformer (org.codice.ddf.catalog.ui.metacard.workspace.WorkspaceTransformer)1 FilterService (org.codice.ddf.catalog.ui.query.monitor.api.FilterService)1 SecurityService (org.codice.ddf.catalog.ui.query.monitor.api.SecurityService)1 WorkspaceMetacardFilter (org.codice.ddf.catalog.ui.query.monitor.api.WorkspaceMetacardFilter)1 Before (org.junit.Before)1