NoSessionActivatorTest.java revision 35ab1c5bca11317474fe12bdd8d22c17cdaf2697
dfc4e0fc3052835b2a069aa9d869fa1161c33fe6Peter Major * The contents of this file are subject to the terms of the Common Development and
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major * Distribution License (the License). You may not use this file except in compliance with the
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major * specific language governing permission and limitations under the License.
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major * When distributing Covered Software, include this CDDL Header Notice in each file and include
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major * Header, with the fields enclosed by brackets [] replaced by your own identifying
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major * information: "Portions copyright [year] [name of copyright owner]".
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major * Copyright 2015 ForgeRock AS.
7c0e808d02c2c2e2008cf8ccdaee6400f5834387Joe Bandenburgimport com.iplanet.dpro.session.service.InternalSession;
f95c4746587962b63f11596f5fdccb641b24a72ajeff.schenkimport com.iplanet.dpro.session.service.SessionService;
b6fa7774830e197d2074d82ccaf37a54b7fa42d9Neil Madden public void setupMocks() {
b6fa7774830e197d2074d82ccaf37a54b7fa42d9Neil Madden public void shouldDestroyAuthSession() throws AuthException {
b6fa7774830e197d2074d82ccaf37a54b7fa42d9Neil Madden NoSessionActivator.INSTANCE.activateSession(null, mockSessionService, mockSession);
b6fa7774830e197d2074d82ccaf37a54b7fa42d9Neil Madden verify(mockSessionService).destroyInternalSession(sid);
b6fa7774830e197d2074d82ccaf37a54b7fa42d9Neil Madden public void shouldAlwaysReturnNull() throws Exception {