AddParentsController extends AbstractCommandController { public void setTargetController(TabbedTargetController targetController) { this.targetController = targetController; } AddParentsController(); TargetEditorContext getEditorContext(HttpServletRequest req); void setTargetController(TabbedTargetController targetController); void setTargetManager(TargetManager targetManager); void setAuthorityManager(AuthorityManager authorityManager); void setSubGroupSeparator(String subGroupSeparator);  }
@Test public final void testSetTargetController() { try { TabbedTargetController tc = new TabbedTargetController(); TabConfig tabConfig = new TabConfig(); tabConfig.setViewName("target"); List<Tab> tabs = getTabList(); tabConfig.setTabs(tabs); tc.setTabConfig(tabConfig); tc.setDefaultCommandClass(org.webcurator.ui.target.command.TargetDefaultCommand.class); testInstance.setTargetController(tc); } catch(Exception e) { fail(e.getMessage()); } }