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

matthew_swift
28.47.2010 f2160f4bd1c8ac67e5a86a6710d431e8932877f9
sdk/tests/unit-tests-testng/src/org/opends/sdk/schema/MatchingRuleUseSyntaxTest.java
@@ -43,10 +43,19 @@
   * {@inheritDoc}
   */
  @Override
  protected Syntax getRule()
  @DataProvider(name = "acceptableValues")
  public Object[][] createAcceptableValues()
  {
    return Schema.getCoreSchema().getSyntax(
        SYNTAX_MATCHING_RULE_USE_OID);
    return new Object[][] {
        {
            "( 2.5.13.10 NAME 'full matching rule' "
                + " DESC 'description of matching rule' OBSOLETE "
                + " APPLIES 2.5.4.3 " + " X-name 'this is an extension' )",
            true },
        {
            "( 2.5.13.10 NAME 'missing closing parenthesis' "
                + " DESC 'description of matching rule' " + " SYNTAX 2.5.4.3 "
                + " X-name ( 'this is an extension' ) ", false }, };
  }
@@ -55,19 +64,8 @@
   * {@inheritDoc}
   */
  @Override
  @DataProvider(name = "acceptableValues")
  public Object[][] createAcceptableValues()
  protected Syntax getRule()
  {
    return new Object[][] {
        {
            "( 2.5.13.10 NAME 'full matching rule' "
                + " DESC 'description of matching rule' OBSOLETE "
                + " APPLIES 2.5.4.3 "
                + " X-name 'this is an extension' )", true },
        {
            "( 2.5.13.10 NAME 'missing closing parenthesis' "
                + " DESC 'description of matching rule' "
                + " SYNTAX 2.5.4.3 "
                + " X-name ( 'this is an extension' ) ", false }, };
    return Schema.getCoreSchema().getSyntax(SYNTAX_MATCHING_RULE_USE_OID);
  }
}