mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
16.56.2014 13ccff83abc20da3b0587e88398d7cc643dd3d6d
OPENDJ-1592 Retrieve time-based matching rules by OID in tests

The specific methods in CoreSchema will disappear in future

3 files modified
8 ■■■■■ changed files
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/PartialDateAndTimeMatchingRuleTestCase.java 2 ●●● patch | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/RelativeTimeGreaterThanMatchingRuleTest.java 3 ●●●● patch | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/RelativeTimeLessThanMatchingRuleTest.java 3 ●●●● patch | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/PartialDateAndTimeMatchingRuleTestCase.java
@@ -179,7 +179,7 @@
    /** {@inheritDoc} */
    @Override
    protected MatchingRule getRule() {
        return CoreSchema.getPartialDateAndTimeMatchingRule();
        return CoreSchema.getInstance().getMatchingRule(SchemaConstants.MR_PARTIAL_DATE_AND_TIME_OID);
    }
    @Test
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/RelativeTimeGreaterThanMatchingRuleTest.java
@@ -35,7 +35,6 @@
import org.forgerock.opendj.ldap.schema.AbstractSubstringMatchingRuleImplTest.FakeIndexQueryFactory;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import org.forgerock.util.time.TimeService;
import static org.fest.assertions.Assertions.*;
@@ -113,7 +112,7 @@
    /** {@inheritDoc} */
    @Override
    protected MatchingRule getRule() {
        return CoreSchema.getRelativeTimeGreaterThanMatchingRule();
        return CoreSchema.getInstance().getMatchingRule(SchemaConstants.OMR_RELATIVE_TIME_GREATER_THAN_OID);
    }
    @Test
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/RelativeTimeLessThanMatchingRuleTest.java
@@ -35,7 +35,6 @@
import org.forgerock.opendj.ldap.schema.AbstractSubstringMatchingRuleImplTest.FakeIndexQueryFactory;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import org.forgerock.util.time.TimeService;
import static org.fest.assertions.Assertions.*;
@@ -114,7 +113,7 @@
    /** {@inheritDoc} */
    @Override
    protected MatchingRule getRule() {
        return CoreSchema.getRelativeTimeLessThanMatchingRule();
        return CoreSchema.getInstance().getMatchingRule(SchemaConstants.OMR_RELATIVE_TIME_LESS_THAN_OID);
    }
    @Test