299N/A/*
299N/A * CDDL HEADER START
299N/A *
299N/A * The contents of this file are subject to the terms of the
299N/A * Common Development and Distribution License, Version 1.0 only
299N/A * (the "License"). You may not use this file except in compliance
299N/A * with the License.
299N/A *
6982N/A * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A * or http://forgerock.org/license/CDDLv1.0.html.
299N/A * See the License for the specific language governing permissions
299N/A * and limitations under the License.
299N/A *
299N/A * When distributing Covered Code, include this CDDL HEADER in each
6982N/A * file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A * If applicable, add the following below this CDDL HEADER, with the
6982N/A * fields enclosed by brackets "[]" replaced with your own identifying
6982N/A * information:
299N/A * Portions Copyright [yyyy] [name of copyright owner]
299N/A *
299N/A * CDDL HEADER END
299N/A *
299N/A *
4292N/A * Copyright 2006-2009 Sun Microsystems, Inc.
299N/A */
299N/Apackage org.opends.server.schema;
299N/A
299N/Aimport org.opends.server.api.EqualityMatchingRule;
299N/Aimport org.testng.annotations.DataProvider;
299N/A
299N/A/**
299N/A * Test the CaseExactIA5EqualityMatchingRule.
299N/A */
299N/Apublic class CaseIgnoreIA5EqualityMatchingRuleTest extends
299N/A EqualityMatchingRuleTest
299N/A{
299N/A
299N/A /**
299N/A * {@inheritDoc}
299N/A */
299N/A @Override
299N/A @DataProvider(name="equalityMatchingRuleInvalidValues")
299N/A public Object[][] createEqualityMatchingRuleInvalidValues()
299N/A {
299N/A return new Object[][] {
4292N/A {"12345678\uFFFD"},
299N/A };
299N/A }
299N/A
299N/A
299N/A /**
299N/A * {@inheritDoc}
299N/A */
299N/A @Override
299N/A @DataProvider(name="equalitymatchingrules")
299N/A public Object[][] createEqualityMatchingRuleTest()
299N/A {
299N/A return new Object[][] {
299N/A {"12345678", "12345678", true},
299N/A {"ABC45678", "ABC45678", true},
299N/A {"ABC45678", "abc45678", true},
299N/A };
299N/A }
299N/A
299N/A /**
299N/A * {@inheritDoc}
299N/A */
299N/A @Override
2342N/A protected EqualityMatchingRule getRule()
299N/A {
299N/A return new CaseIgnoreIA5EqualityMatchingRule();
299N/A }
299N/A
299N/A}