@Test public void testUseWhatIsThereIfWhatIsProposedDoesNotMatch() { final HashSet<PackageItem> packages = new HashSet<>(); packages.add(new PackageItem("not the right package", "not the right package")); kieModulePackages = new KieModulePackages(packages, 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).setUp(eq("not the right package"), 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);  }