LocalOperationsTest.java revision 42c10b520a70c6b2c67ad812cfda98ac1663f0c5
2852N/A * Distribution License (the License). You may not use this file except in compliance with the
2852N/A * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
2852N/A * When distributing Covered Software, include this CDDL Header Notice in each file and include
2852N/A * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
4618N/Apublic class LocalOperationsTest {
4618N/A given(sessionAccessManager.getInternalSession(mockSessionID)).willReturn(mockInternalSession);
4618N/A given(sessionAccessManager.removeInternalSession(mockSessionID)).willReturn(mockInternalSession);
4618N/A local = new LocalOperations(mock(Debug.class), sessionAccessManager, sessionInfoFactory, serverConfig,
4618N/A mock(SessionNotificationSender.class), mock(SessionLogging.class), mock(SessionAuditor.class),
4618N/A given(sessionInfoFactory.getSessionInfo(mockInternalSession, mockInternalSession.getSessionID()))
4618N/A public void shouldRemoveSessionFromSessionAccessManagerOnDestroy() throws SessionException {
4618N/A given(sessionAccessManager.getInternalSession(mockSessionID)).willReturn(mockInternalSession);
4618N/A given(sessionAccessManager.getInternalSession(mockSessionID)).willReturn(mockInternalSession);