3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * The contents of this file are subject to the terms
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * of the Common Development and Distribution License
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * (the License). You may not use this file except in
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * compliance with the License.
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * You can obtain a copy of the License at
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * https://opensso.dev.java.net/public/CDDLv1.0.html or
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * See the License for the specific language governing
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * permission and limitations under the License.
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * When distributing Covered Code, include this CDDL
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * Header Notice in each file and include the License file
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * If applicable, add the following below the CDDL Header,
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * with the fields enclosed by brackets [] replaced by
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * your own identifying information:
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * "Portions Copyrighted [year] [name of copyright owner]"
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * $Id: EntitlementServiceTest.java,v 1.1 2009/08/19 05:41:01 veiming Exp $
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmiller * Portions Copyrighted 2016 ForgeRock AS.
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmillerpackage com.sun.identity.entitlement.opensso;
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmillerimport org.forgerock.openam.notifications.NotificationBroker;
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmillerimport com.sun.identity.entitlement.EntitlementConfiguration;
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmillerimport com.sun.identity.security.AdminTokenAction;
3f424ffdb194d6ff7ac053c5b3e53211a2de2d64Brendan Mmillerimport com.sun.identity.unittest.UnittestLog;
3a666413480ef97101461705e1f47cbab0266301Brendan Mmiller SSOToken adminToken = (SSOToken) AccessController.doPrivileged(
3a666413480ef97101461705e1f47cbab0266301Brendan Mmiller EntitlementConfiguration ec = new EntitlementService(SubjectUtils.createSubject(adminToken), "/", broker);
3a666413480ef97101461705e1f47cbab0266301Brendan Mmiller "EntitlementServiceTest.hasEntitlementDITs: returns " + result);