@Test public final void testSwitchToEditMode() { try { MockHttpServletRequest request = new MockHttpServletRequest(); TargetGroup group = manager.loadGroup(15000L); GroupsEditorContext context = new GroupsEditorContext(group, false); request.getSession().setAttribute( TabbedGroupController.EDITOR_CONTEXT, context); testInstance.switchToEditMode(request); context = testInstance.getEditorContext(request); assertTrue(context.isEditMode()); } catch (Exception e) { String message = e.getClass().toString() + " - " + e.getMessage(); log.debug(message); fail(message); } }
@Override protected void switchToEditMode(HttpServletRequest req) { getEditorContext(req).setEditMode(true); bindEditorContext(req, getEditorContext(req)); }
TabbedGroupController extends TabbedController { @Override protected void switchToEditMode(HttpServletRequest req) { getEditorContext(req).setEditMode(true); bindEditorContext(req, getEditorContext(req)); } }
TabbedGroupController extends TabbedController { @Override protected void switchToEditMode(HttpServletRequest req) { getEditorContext(req).setEditMode(true); bindEditorContext(req, getEditorContext(req)); }  }
TabbedGroupController extends TabbedController { @Override protected void switchToEditMode(HttpServletRequest req) { getEditorContext(req).setEditMode(true); bindEditorContext(req, getEditorContext(req)); }  void bindEditorContext(HttpServletRequest req, GroupsEditorContext context); void unbindEditorContext(HttpServletRequest req); GroupsEditorContext getEditorContext(HttpServletRequest req); void setTargetManager(TargetManager targetManager); void setBusinessObjectFactory(BusinessObjectFactory businessObjectFactory); void setSearchController(GroupSearchController searchController); void setMessageSource(MessageSource messageSource); void setAuthorityManager(AuthorityManager authorityManager); }
TabbedGroupController extends TabbedController { @Override protected void switchToEditMode(HttpServletRequest req) { getEditorContext(req).setEditMode(true); bindEditorContext(req, getEditorContext(req)); }  void bindEditorContext(HttpServletRequest req, GroupsEditorContext context); void unbindEditorContext(HttpServletRequest req); GroupsEditorContext getEditorContext(HttpServletRequest req); void setTargetManager(TargetManager targetManager); void setBusinessObjectFactory(BusinessObjectFactory businessObjectFactory); void setSearchController(GroupSearchController searchController); void setMessageSource(MessageSource messageSource); void setAuthorityManager(AuthorityManager authorityManager); static final String EDITOR_CONTEXT; }