3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell/*
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell * The contents of this file are subject to the terms of the Common Development and
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell * Distribution License (the License). You may not use this file except in compliance with the
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell * License.
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell *
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell * specific language governing permission and limitations under the License.
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell *
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell * When distributing Covered Software, include this CDDL Header Notice in each file and include
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell * Header, with the fields enclosed by brackets [] replaced by your own identifying
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell * information: "Portions copyright [year] [name of copyright owner]".
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell *
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell * Copyright 2014 ForgeRock AS.
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell */
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnellpackage com.sun.identity.common;
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnellimport org.testng.annotations.Test;
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnellimport static org.testng.Assert.*;
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnellpublic class CaseInsensitiveKeyTest {
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell @Test
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell public void test() {
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell CaseInsensitiveKey a = new CaseInsensitiveKey("one");
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell CaseInsensitiveKey b = new CaseInsensitiveKey("ONE");
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell assertEquals(a.hashCode(), b.hashCode());
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell assertTrue(a.equals(b));
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell assertTrue(b.equals(a));
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell }
3fc1b5e9b2ff286cd528a06154cc998198de1e70Craig McDonnell}