| | |
| | | import org.forgerock.opendj.admin.server.GoverningStructureRuleVirtualAttributeCfg; |
| | | import org.forgerock.opendj.admin.server.LDAPConnectionHandlerCfg; |
| | | import org.forgerock.opendj.ldap.schema.Schema; |
| | | import org.opends.server.admin.AttributeTypePropertyDefinition; |
| | | import org.testng.annotations.AfterClass; |
| | | import org.testng.annotations.BeforeClass; |
| | | import org.testng.annotations.Test; |
| | | |
| | | /** |
| | |
| | | @SuppressWarnings("javadoc") |
| | | public class ConfigurationMockTest extends ConfigTestCase { |
| | | |
| | | @BeforeClass |
| | | void setup() { |
| | | disableClassValidationForProperties(); |
| | | } |
| | | |
| | | @AfterClass |
| | | void cleanup() { |
| | | enableClassValidationForProperties(); |
| | | } |
| | | |
| | | @Test |
| | | public void testPropertyWithStringReturnValue() { |
| | | GoverningStructureRuleVirtualAttributeCfg mock = mockCfg(GoverningStructureRuleVirtualAttributeCfg.class); |
| | |
| | | |
| | | @Test |
| | | public void testPropertyWithAttributeTypeReturnValue() throws Exception { |
| | | AttributeTypePropertyDefinition.setCheckSchema(false); // attribute type is not in default schema |
| | | CollectiveAttributeSubentriesVirtualAttributeCfg mock = |
| | | mockCfg(CollectiveAttributeSubentriesVirtualAttributeCfg.class); |
| | | assertThat(mock.getAttributeType()).isEqualTo( |