@Test public void setContextTestDropDefaultPackage() { setupPackageList(); final Command packagesLoadedCommand = mock(Command.class); packageListBox.setUp(false, packagesLoadedCommand); verify(view).setUp(eq("com.myteam.mymodule"), mapArgumentCaptor.capture()); final Map map = mapArgumentCaptor.getValue(); assertEquals(4, map.size()); assertFalse(map.keySet().contains("")); assertTrue(map.keySet().contains("com")); assertTrue(map.keySet().contains("com.myteam")); assertTrue(map.keySet().contains("com.myteam.mymodule")); assertTrue(map.keySet().contains("com.myteam.mymodule.mypackage")); verify(packagesLoadedCommand).execute(); }
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);  }