use of org.kie.workbench.common.screens.explorer.service.ExplorerService in project kie-wb-common by kiegroup.
the class ExplorerServiceImplTest method explorerServiceShouldBeADependentBean.
@Test
public void explorerServiceShouldBeADependentBean() {
ExplorerService reference1 = lookupReference();
ExplorerService reference2 = lookupReference();
assertNotSame(reference1, reference2);
}
use of org.kie.workbench.common.screens.explorer.service.ExplorerService in project kie-wb-common by kiegroup.
the class ActiveOptionsInitParamTest method testParametersInPlaceRequest.
@Test
public void testParametersInPlaceRequest() throws Exception {
options = new ActiveContextOptions(new CallerMock<ExplorerService>(mock(ExplorerService.class)), changedEvent);
PlaceRequest placeRequest = mock(PlaceRequest.class);
when(placeRequest.getParameter("mode", "")).thenReturn(mode);
options.init(placeRequest, mock(Command.class));
assertTrue(options.getOptions().contains(option1));
assertTrue(options.getOptions().contains(option2));
}
Aggregations