From a737b159c6dc72eb3ff1e5582116ec5d94561b00 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 10 Apr 2007 16:47:27 +0000
Subject: [PATCH] Fix an issue in the admin test cases that was causing later tests to fail if they depended on attribute types being defined in the server schema.
---
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/AttributeTypePropertyDefinitionTest.java | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/AttributeTypePropertyDefinitionTest.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/AttributeTypePropertyDefinitionTest.java
index 168bb9b..d5db10a 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/AttributeTypePropertyDefinitionTest.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/AttributeTypePropertyDefinitionTest.java
@@ -135,6 +135,10 @@
AttributeTypePropertyDefinition d = createPropertyDefinition();
AttributeType type = d.decodeValue(value);
assertEquals(type.getNameOrOID(), value);
+
+ // Make sure to turn schema checking back on so that other tests which
+ // depend on it don't fail.
+ AttributeTypePropertyDefinition.setCheckSchema(true);
}
--
Gitblit v1.10.0