@Test public void testEmpty() throws Exception { when(kModuleService.load(kmodulePath)).thenReturn(new KModuleModel()); selector.init(path, null); verify(view).addKBases("defaultKieBase"); ArgumentCaptor<List> listArgumentCaptor = ArgumentCaptor.forClass(List.class); verify(view).setKSessions(listArgumentCaptor.capture()); verify(view).setSelected(eq("defaultKieBase"), eq("defaultKieSession")); List ksessionNamesList = listArgumentCaptor.getValue(); assertEquals(1, ksessionNamesList.size()); assertEquals("defaultKieSession", ksessionNamesList.iterator().next()); }
public void init(final Path path, final String ksession) { moduleService.call(getSuccessfulResolveModuleCallback(ksession)).resolveModule(path); }
KSessionSelector implements IsWidget { public void init(final Path path, final String ksession) { moduleService.call(getSuccessfulResolveModuleCallback(ksession)).resolveModule(path); } }
KSessionSelector implements IsWidget { public void init(final Path path, final String ksession) { moduleService.call(getSuccessfulResolveModuleCallback(ksession)).resolveModule(path); } @Inject  KSessionSelector(final KSessionSelectorView view,
                            final Caller<KieModuleService> moduleService,
                            final Caller<KModuleService> kModuleService); }
KSessionSelector implements IsWidget { public void init(final Path path, final String ksession) { moduleService.call(getSuccessfulResolveModuleCallback(ksession)).resolveModule(path); } @Inject  KSessionSelector(final KSessionSelectorView view,
                            final Caller<KieModuleService> moduleService,
                            final Caller<KModuleService> kModuleService); void init(final Path path,
                     final String ksession); void onKBaseSelected(final String kbaseName); String getSelectedKSessionName(); @Override Widget asWidget(); void onSelectionChange(); void setSelectionChangeHandler(final Command handler); }
KSessionSelector implements IsWidget { public void init(final Path path, final String ksession) { moduleService.call(getSuccessfulResolveModuleCallback(ksession)).resolveModule(path); } @Inject  KSessionSelector(final KSessionSelectorView view,
                            final Caller<KieModuleService> moduleService,
                            final Caller<KModuleService> kModuleService); void init(final Path path,
                     final String ksession); void onKBaseSelected(final String kbaseName); String getSelectedKSessionName(); @Override Widget asWidget(); void onSelectionChange(); void setSelectionChangeHandler(final Command handler);  }