@Test public void testNoPackages() { kieModulePackages = new KieModulePackages(new HashSet<>(), createPackage("com.myteam.mymodule")); doReturn(kieModulePackages).when(moduleService).resolveModulePackages(any(Module.class)); kieModulePackages.setDefaultPackage(createPackage("com")); doReturn(kieModulePackages).when(moduleService).resolveModulePackages(any()); final Command packagesLoadedCommand = mock(Command.class); packageListBox.setUp(false, packagesLoadedCommand); verify(view, never()).setUp(anyString(), anyMap()); }
public void setUp(final boolean includeDefaultPackage) { setUp(includeDefaultPackage, null); }
PackageListBox implements IsElement { public void setUp(final boolean includeDefaultPackage) { setUp(includeDefaultPackage, null); } }
PackageListBox implements IsElement { public void setUp(final boolean includeDefaultPackage) { setUp(includeDefaultPackage, null); } @Inject  PackageListBox(final PackageListBoxView view,
                          final WorkspaceProjectContext projectContext,
                          final Caller<KieModuleService> moduleService); }
PackageListBox implements IsElement { public void setUp(final boolean includeDefaultPackage) { setUp(includeDefaultPackage, null); } @Inject  PackageListBox(final PackageListBoxView view,
                          final WorkspaceProjectContext projectContext,
                          final Caller<KieModuleService> moduleService); void setUp(final boolean includeDefaultPackage); void setUp(final boolean includeDefaultPackage,
                      final Command packagesLoadedCommand); void clearSelectElement(); Package getSelectedPackage(); @Override HTMLElement getElement(); void onPackageSelected(final String selectedPackage); }
PackageListBox implements IsElement { public void setUp(final boolean includeDefaultPackage) { setUp(includeDefaultPackage, null); } @Inject  PackageListBox(final PackageListBoxView view,
                          final WorkspaceProjectContext projectContext,
                          final Caller<KieModuleService> moduleService); void setUp(final boolean includeDefaultPackage); void setUp(final boolean includeDefaultPackage,
                      final Command packagesLoadedCommand); void clearSelectElement(); Package getSelectedPackage(); @Override HTMLElement getElement(); void onPackageSelected(final String selectedPackage);  }