Skip to main content
summaryrefslogtreecommitdiffstats
blob: c1b30ea1d7f1255ca7a3b6197f6883f30e40e9ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*******************************************************************************
 * Copyright (c) 2004, 2007 Boeing.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Boeing - initial API and implementation
 *******************************************************************************/
package org.eclipse.osee.framework.core.server.test.internal.session;

import org.eclipse.osee.framework.core.model.test.mocks.MockOseeDataAccessor;
import org.eclipse.osee.framework.core.server.IAuthenticationManager;
import org.eclipse.osee.framework.core.server.internal.session.ISessionQuery;
import org.eclipse.osee.framework.core.server.internal.session.Session;
import org.eclipse.osee.framework.core.server.internal.session.SessionCache;
import org.eclipse.osee.framework.core.server.internal.session.SessionFactory;
import org.eclipse.osee.framework.core.server.internal.session.SessionManagerImpl;
import org.junit.Ignore;
import org.junit.Test;

/**
 * Test Case for {@link SessionManagerImpl}
 * 
 * @author Roberto E. Escobar
 */
public class SessionManagerTest {

   @Ignore
   @Test
   public void test() {
      SessionFactory factory = null;
      ISessionQuery query = null;
      IAuthenticationManager authenticator = null;
      MockOseeDataAccessor<Session> accessor = new MockOseeDataAccessor<Session>();
      SessionCache sessionCache = new SessionCache(accessor);
      new SessionManagerImpl("ABCD", factory, query, sessionCache, authenticator);

      //		OseeSessionGrant grant = sessionManager.createSession(OseeCredential credential); throws OseeCoreException;

      //		sessionManager.releaseSession(String sessionId) throws OseeCoreException;
      //		sessionManager.updateSessionActivity(String sessionId, String interactionName) throws OseeCoreException;

      //		ISession session = sessionManager.getSessionById(String sessionId) throws OseeCoreException;

      //		Collection<ISession> sessionManager.getSessionByClientAddress(String clientAddress) throws OseeCoreException;
      //		Collection<ISession> sessionManager.getSessionsByUserId(String userId, boolean includeNonServerManagedSessions) throws OseeCoreException;
      //		Collection<ISession> sessionManager.getAllSessions(boolean includeNonServerManagedSessions) throws OseeCoreException;

      //		sessionManager.releaseSessionImmediate(String... sessionId) throws OseeCoreException;
   }
}

Back to the top