@Test public final void testSwitchToEditMode() { try { MockHttpServletRequest request = new MockHttpServletRequest(); Target target = manager.load(4000L); TargetEditorContext context = new TargetEditorContext(manager, target, true); request.getSession().setAttribute(TabbedTargetController.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)); }
TabbedTargetController extends TabbedController { @Override protected void switchToEditMode(HttpServletRequest req) { getEditorContext(req).setEditMode(true); bindEditorContext(req, getEditorContext(req)); } }
TabbedTargetController extends TabbedController { @Override protected void switchToEditMode(HttpServletRequest req) { getEditorContext(req).setEditMode(true); bindEditorContext(req, getEditorContext(req)); }  }
TabbedTargetController extends TabbedController { @Override protected void switchToEditMode(HttpServletRequest req) { getEditorContext(req).setEditMode(true); bindEditorContext(req, getEditorContext(req)); }  void bindEditorContext(HttpServletRequest req, TargetEditorContext context); void unbindEditorContext(HttpServletRequest req); TargetEditorContext getEditorContext(HttpServletRequest req); void setTargetManager(TargetManager targetManager); void setBusinessObjectFactory(BusinessObjectFactory businessObjectFactory); void setSearchController(TargetSearchController searchController); void setMessageSource(MessageSource messageSource); void setAuthorityManager(AuthorityManager authorityManager); }
TabbedTargetController extends TabbedController { @Override protected void switchToEditMode(HttpServletRequest req) { getEditorContext(req).setEditMode(true); bindEditorContext(req, getEditorContext(req)); }  void bindEditorContext(HttpServletRequest req, TargetEditorContext context); void unbindEditorContext(HttpServletRequest req); TargetEditorContext getEditorContext(HttpServletRequest req); void setTargetManager(TargetManager targetManager); void setBusinessObjectFactory(BusinessObjectFactory businessObjectFactory); void setSearchController(TargetSearchController searchController); void setMessageSource(MessageSource messageSource); void setAuthorityManager(AuthorityManager authorityManager); static final String EDITOR_CONTEXT; }