@Test public final void testGetEditorContext() { try { HttpServletRequest aReq = new MockHttpServletRequest(); GroupsEditorContext groupsEditorContext = bindEditorContext(aReq, 15000L); GroupsEditorContext gec = testInstance.getEditorContext(aReq); assertNotNull(gec); assertEquals(groupsEditorContext, gec); } catch(Exception e) { fail(e.getMessage()); } }
public GroupsEditorContext getEditorContext(HttpServletRequest req) { GroupsEditorContext ctx = (GroupsEditorContext) req.getSession().getAttribute(TabbedGroupController.EDITOR_CONTEXT); if( ctx == null) { throw new IllegalStateException("tabEditorContext not yet bound to the session"); } return ctx; }
AddMembersController extends AbstractCommandController { public GroupsEditorContext getEditorContext(HttpServletRequest req) { GroupsEditorContext ctx = (GroupsEditorContext) req.getSession().getAttribute(TabbedGroupController.EDITOR_CONTEXT); if( ctx == null) { throw new IllegalStateException("tabEditorContext not yet bound to the session"); } return ctx; } }
AddMembersController extends AbstractCommandController { public GroupsEditorContext getEditorContext(HttpServletRequest req) { GroupsEditorContext ctx = (GroupsEditorContext) req.getSession().getAttribute(TabbedGroupController.EDITOR_CONTEXT); if( ctx == null) { throw new IllegalStateException("tabEditorContext not yet bound to the session"); } return ctx; } AddMembersController(); }
AddMembersController extends AbstractCommandController { public GroupsEditorContext getEditorContext(HttpServletRequest req) { GroupsEditorContext ctx = (GroupsEditorContext) req.getSession().getAttribute(TabbedGroupController.EDITOR_CONTEXT); if( ctx == null) { throw new IllegalStateException("tabEditorContext not yet bound to the session"); } return ctx; } AddMembersController(); GroupsEditorContext getEditorContext(HttpServletRequest req); void setGroupsController(TabbedGroupController groupsController); void setTargetManager(TargetManager targetManager); void setAuthorityManager(AuthorityManager authorityManager); }
AddMembersController extends AbstractCommandController { public GroupsEditorContext getEditorContext(HttpServletRequest req) { GroupsEditorContext ctx = (GroupsEditorContext) req.getSession().getAttribute(TabbedGroupController.EDITOR_CONTEXT); if( ctx == null) { throw new IllegalStateException("tabEditorContext not yet bound to the session"); } return ctx; } AddMembersController(); GroupsEditorContext getEditorContext(HttpServletRequest req); void setGroupsController(TabbedGroupController groupsController); void setTargetManager(TargetManager targetManager); void setAuthorityManager(AuthorityManager authorityManager);  }