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

matthew_swift
28.47.2010 f2160f4bd1c8ac67e5a86a6710d431e8932877f9
sdk/tests/unit-tests-testng/src/org/opends/sdk/schema/GeneralizedTimeSyntaxTest.java
@@ -28,7 +28,7 @@
import static org.opends.sdk.schema.SchemaConstants.*;
import static org.opends.sdk.schema.SchemaConstants.SYNTAX_GENERALIZED_TIME_OID;
import org.testng.annotations.DataProvider;
@@ -39,18 +39,6 @@
 */
public class GeneralizedTimeSyntaxTest extends SyntaxTestCase
{
  /**
   * {@inheritDoc}
   */
  @Override
  protected Syntax getRule()
  {
    return Schema.getCoreSchema()
        .getSyntax(SYNTAX_GENERALIZED_TIME_OID);
  }
  @Override
  @DataProvider(name = "acceptableValues")
  public Object[][] createAcceptableValues()
@@ -59,10 +47,8 @@
        { "20060906135030+01", true }, { "200609061350Z", true },
        { "20060906135030Z", true }, { "20061116135030Z", true },
        { "20061126135030Z", true }, { "20061231235959Z", true },
        { "20060906135030+0101", true },
        { "20060906135030+2359", true },
        { "20060906135030+3359", false },
        { "20060906135030+2389", false },
        { "20060906135030+0101", true }, { "20060906135030+2359", true },
        { "20060906135030+3359", false }, { "20060906135030+2389", false },
        { "20060906135030+2361", false }, { "20060906135030+", false },
        { "20060906135030+0", false }, { "20060906135030+010", false },
        { "20061200235959Z", false }, { "2006121a235959Z", false },
@@ -74,4 +60,15 @@
        { "2006", false }, };
  }
  /**
   * {@inheritDoc}
   */
  @Override
  protected Syntax getRule()
  {
    return Schema.getCoreSchema().getSyntax(SYNTAX_GENERALIZED_TIME_OID);
  }
}