| | |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import static org.forgerock.opendj.ldap.schema.CoreSchema.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | |
| | | import java.io.File; |
| | | import java.util.List; |
| | | import java.util.StringTokenizer; |
| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.schema.AttributeType; |
| | | import org.forgerock.opendj.ldap.schema.MatchingRule; |
| | | import org.forgerock.opendj.ldap.schema.ObjectClass; |
| | | import org.forgerock.opendj.ldap.schema.NameForm; |
| | | import org.forgerock.opendj.ldap.schema.ObjectClass; |
| | | import org.forgerock.opendj.ldap.schema.Syntax; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | import org.testng.annotations.BeforeClass; |
| | | import org.testng.annotations.Test; |
| | | |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.testng.Assert.*; |
| | | |
| | | /** This class defines a set of generic tests that may be used to examine the server schema. */ |
| | | public class GenericSchemaTestCase |
| | | extends SchemaTestCase |
| | |
| | | continue; |
| | | } |
| | | |
| | | AttributeType attrType = DirectoryServer.getAttributeType("attributetypes"); |
| | | assertNotNull(attrType); |
| | | List<Attribute> attrList = e.getAttribute(attrType); |
| | | List<Attribute> attrList = e.getAttribute(getAttributeTypesAttributeType()); |
| | | if (attrList.isEmpty()) |
| | | { |
| | | // No attribute types in the schema file. This is OK. |
| | |
| | | continue; |
| | | } |
| | | |
| | | AttributeType attrType = DirectoryServer.getAttributeType("nameforms"); |
| | | assertNotNull(attrType); |
| | | List<Attribute> attrList = e.getAttribute(attrType); |
| | | List<Attribute> attrList = e.getAttribute(getNameFormsAttributeType()); |
| | | if (attrList.isEmpty()) |
| | | { |
| | | // No attribute types in the schema file. This is OK. |