We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4708cf commit c9b87bbCopy full SHA for c9b87bb
src/test/java/org/zapodot/junit/ldap/EmbeddedLdapRuleCustomWithoutSchemaTest.java
@@ -0,0 +1,23 @@
1
+package org.zapodot.junit.ldap;
2
+
3
+import com.unboundid.ldap.sdk.schema.Schema;
4
+import org.junit.Rule;
5
+import org.junit.Test;
6
7
+import static org.junit.Assert.assertTrue;
8
9
+public class EmbeddedLdapRuleCustomWithoutSchemaTest {
10
11
+ @Rule
12
+ public EmbeddedLdapRule embeddedLdapRule = EmbeddedLdapRuleBuilder.newInstance()
13
+ .withoutDefaultSchema()
14
+ .build();
15
16
+ @Test
17
+ public void testEmptySchema() throws Exception {
18
+ final Schema schema =
19
+ embeddedLdapRule.ldapConnection().getSchema();
20
+ assertTrue(schema.getAttributeTypes().isEmpty());
21
22
+ }
23
+}
0 commit comments