EqualityMatchingRuleTest.java revision 530e312594f469609337996570cf0ea504554a68
/*
* 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 2006-2008 Sun Microsystems, Inc.
* Portions Copyright 2014 ForgeRock AS
*/
/**
* Test The equality matching rules and the equality matching rule api.
*/
public abstract class EqualityMatchingRuleTest extends SchemaTestCase
{
/**
* Generate data for the EqualityMatching Rule test.
*
* @return the data for the equality matching rule test.
*/
public abstract Object[][] createEqualityMatchingRuleTest();
/**
* Generate invalid data for the EqualityMatching Rule test.
*
* @return the data for the EqualityMatchingRulesInvalidValuestest.
*/
public abstract Object[][] createEqualityMatchingRuleInvalidValues();
/**
* Get an instance of the matching rule.
*
* @return An instance of the matching rule to test.
*/
protected abstract MatchingRule getRule();
/**
* Generate data for the EqualityMatching Rule test in warn mode.
*
* @return the data for the equality matching rule test in warn mode.
*/
public Object[][] createWarnmodeEqualityMatchingRuleTest()
{
return new Object[][] {};
}
/**
* Test the normalization and the comparison in the warning mode
*/
public void warnmodeEqualityMatchingRules(
throws Exception
{
try
{
}
finally
{
}
}
/**
* Test that invalid values are rejected.
*/
{
// Get the instance of the rule to be tested.
// normalize the 2 provided values
try
{
}
catch (DecodeException ignored)
{
}
}
/**
* Generate data for the EqualityMatching Rule test.
*
* @return the data for the equality matching rule test.
*/
public Object[][] createValuesMatch()
{
return new Object[][] {};
}
/**
* Test the valuesMatch method used for extensible filters.
*/
{
// normalize the 2 provided values and check that they are equals
}
}