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

matthew_swift
28.47.2010 f2160f4bd1c8ac67e5a86a6710d431e8932877f9
sdk/tests/unit-tests-testng/src/org/opends/sdk/schema/LDAPSyntaxTest.java
@@ -43,17 +43,6 @@
   * {@inheritDoc}
   */
  @Override
  protected Syntax getRule()
  {
    return Schema.getCoreSchema().getSyntax(SYNTAX_LDAP_SYNTAX_OID);
  }
  /**
   * {@inheritDoc}
   */
  @Override
  @DataProvider(name = "acceptableValues")
  public Object[][] createAcceptableValues()
  {
@@ -61,20 +50,12 @@
        {
            "( 2.5.4.3 DESC 'full syntax description' "
                + "X-9EN ('this' 'is' 'a' 'test'))", false },
        {
            "( 2.5.4.3 DESC 'full syntax description' "
                + "(X-name 'this", false },
        {
            "( 2.5.4.3 DESC 'full syntax description' "
                + "(X-name 'this'", false },
        {
            "( 2.5.4.3 DESC 'full syntax description' "
                + "Y-name 'this')", false },
        {
            "( 2.5.4.3 DESC 'full syntax description' "
                + "X-name 'this' 'is')", false },
        { "( 2.5.4.3 DESC 'full syntax description' " + "X-name )",
        { "( 2.5.4.3 DESC 'full syntax description' " + "(X-name 'this", false },
        { "( 2.5.4.3 DESC 'full syntax description' " + "(X-name 'this'", false },
        { "( 2.5.4.3 DESC 'full syntax description' " + "Y-name 'this')", false },
        { "( 2.5.4.3 DESC 'full syntax description' " + "X-name 'this' 'is')",
            false },
        { "( 2.5.4.3 DESC 'full syntax description' " + "X-name )", false },
        {
            "( 2.5.4.3 DESC 'full syntax description' "
                + "X- ('this' 'is' 'a' 'test'))", false },
@@ -105,12 +86,9 @@
        {
            "( 2.5.4.3 DESC 'full syntax description' "
                + "X-a-_eN_- ('this' 'is' 'a' 'test'))", true },
        {
            "( 2.5.4.3 DESC 'full syntax description' "
                + "X-name ('this'))", true },
        {
            "( 2.5.4.3 DESC 'full syntax description' "
                + "X-name 'this')", true },
        { "( 2.5.4.3 DESC 'full syntax description' " + "X-name ('this'))",
            true },
        { "( 2.5.4.3 DESC 'full syntax description' " + "X-name 'this')", true },
        {
            "( 2.5.4.3 DESC 'full syntax description' "
                + "X-name 'this' X-name-a 'test')", true },
@@ -122,4 +100,15 @@
        { "2.5.4.3 DESC 'syntax description' )", false },
        { "(2.5.4.3 DESC 'syntax description' ", false }, };
  }
  /**
   * {@inheritDoc}
   */
  @Override
  protected Syntax getRule()
  {
    return Schema.getCoreSchema().getSyntax(SYNTAX_LDAP_SYNTAX_OID);
  }
}