From f2160f4bd1c8ac67e5a86a6710d431e8932877f9 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 28 May 2010 11:47:51 +0000
Subject: [PATCH] Synchronize SDK on java.net with internal repository.
---
sdk/tests/unit-tests-testng/src/org/opends/sdk/schema/LDAPSyntaxTest.java | 49 +++++++++++++++++++------------------------------
1 files changed, 19 insertions(+), 30 deletions(-)
diff --git a/sdk/tests/unit-tests-testng/src/org/opends/sdk/schema/LDAPSyntaxTest.java b/sdk/tests/unit-tests-testng/src/org/opends/sdk/schema/LDAPSyntaxTest.java
index 6a338e0..b78b12f 100644
--- a/sdk/tests/unit-tests-testng/src/org/opends/sdk/schema/LDAPSyntaxTest.java
+++ b/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);
+ }
}
--
Gitblit v1.10.0