CollationEqualityMatchingRuleTest.java revision 6870993d12bf8a2b9d5cd103dc5ccabc42f9bf5d
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2014 ForgeRock AS.
*/
import org.forgerock.opendj.ldap.schema.AbstractSubstringMatchingRuleImplTest.FakeIndexQueryFactory;
@SuppressWarnings("javadoc")
@Test
public class CollationEqualityMatchingRuleTest extends MatchingRuleTest {
/** {@inheritDoc} */
public Object[][] createMatchingRuleInvalidAttributeValues() {
return new Object[][] { };
}
/** {@inheritDoc} */
public Object[][] createMatchingRuleTest() {
return new Object[][] {
// \u00E9 = LATIN SMALL LETTER E WITH ACUTE
// \u00C9 = LATIN CAPITAL LETTER E WITH ACUTE
};
}
/** {@inheritDoc} */
protected MatchingRule getRule() {
// Note that oid and names are not used by the test (ie, they could be any value, test should pass anyway)
// Only the implementation class and the provided locale are really tested here.
names("fr.eq").
addToSchema().
toSchema();
}
@Test
public void testCreateIndexQuery() throws Exception {
String indexQuery = assertion.createIndexQuery(new FakeIndexQueryFactory(newIndexingOptions(), false));
}
}