protected void setUp() throws Exception { home = (ISessionManagerHome) ServiceLookup.getInstance(ServiceLookup.CLIENT_CONTEXT) .getHome(ISessionManagerHome.class); assertNotNull("ISessionManagerHome is null", home); remote = home.create(); assertNotNull("ISessionManagerObj is null", remote); remote.closeInactiveSessions(0); }
protected void setUp() throws java.lang.Exception { Log.log("TEST", "[DeleteGridDocumentActionTest.setUp] Enter"); _sessionHome = (ISessionManagerHome) ServiceLookup.getInstance(ServiceLookup.CLIENT_CONTEXT) .getHome(ISessionManagerHome.class); assertNotNull("SessionHome is null", _sessionHome); _sessionRemote = _sessionHome.create(); assertNotNull("SessionRemote is null", _sessionRemote); _sessionID = _sessionRemote.openSession(); _sessionRemote.authSession(_sessionID, _userID); _home = (IDocumentManagerHome) ServiceLookup.getInstance(ServiceLookup.CLIENT_CONTEXT) .getHome(IDocumentManagerHome.class); assertNotNull("Home is null", _home); _remote = _home.create(); assertNotNull("remote is null", _remote); Log.log("TEST", "[DeleteGridDocumentActionTest.setUp] Exit"); }