| File was renamed from opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/schema/SchemaCompatOptionsTest.java |
| | |
| | | |
| | | |
| | | /** |
| | | * Test SchemaCompatOptions. |
| | | * Tests schema compatibility options. |
| | | */ |
| | | public class SchemaCompatOptionsTest extends SchemaTestCase |
| | | public class SchemaCompatTest extends SchemaTestCase |
| | | { |
| | | /** |
| | | * Returns test data for valid attribute descriptions. |
| | |
| | | boolean allowIllegalCharacters) |
| | | { |
| | | SchemaBuilder builder = new SchemaBuilder(Schema.getCoreSchema()) |
| | | .setSchemaCompatOptions(SchemaCompatOptions.defaultOptions() |
| | | .allowMalformedNamesAndOptions(allowIllegalCharacters)); |
| | | .allowMalformedNamesAndOptions(allowIllegalCharacters); |
| | | Schema schema = builder.toSchema().asNonStrictSchema(); |
| | | AttributeDescription.valueOf(atd, schema); |
| | | } |
| | |
| | | boolean allowIllegalCharacters) |
| | | { |
| | | SchemaBuilder builder = new SchemaBuilder(Schema.getCoreSchema()) |
| | | .setSchemaCompatOptions(SchemaCompatOptions.defaultOptions() |
| | | .allowMalformedNamesAndOptions(allowIllegalCharacters)); |
| | | .allowMalformedNamesAndOptions(allowIllegalCharacters); |
| | | Schema schema = builder.toSchema().asNonStrictSchema(); |
| | | AttributeDescription.valueOf(atd, schema); |
| | | } |
| | |
| | | Syntax syntax, boolean allowIllegalCharacters) |
| | | { |
| | | SchemaBuilder builder = new SchemaBuilder() |
| | | .setSchemaCompatOptions(SchemaCompatOptions.defaultOptions() |
| | | .allowMalformedNamesAndOptions(allowIllegalCharacters)); |
| | | .allowMalformedNamesAndOptions(allowIllegalCharacters); |
| | | |
| | | if (syntax == ATD_SYNTAX) |
| | | { |
| | |
| | | Syntax syntax, boolean allowIllegalCharacters) |
| | | { |
| | | SchemaBuilder builder = new SchemaBuilder() |
| | | .setSchemaCompatOptions(SchemaCompatOptions.defaultOptions() |
| | | .allowMalformedNamesAndOptions(allowIllegalCharacters)); |
| | | .allowMalformedNamesAndOptions(allowIllegalCharacters); |
| | | |
| | | if (syntax == ATD_SYNTAX) |
| | | { |