Search in sources :

Example 1 with BooleanSyntaxChecker

use of org.apache.directory.api.ldap.model.schema.syntaxCheckers.BooleanSyntaxChecker in project directory-ldap-api by apache.

the class BooleanSyntaxCheckerTest method testNullString.

@Test
public void testNullString() {
    BooleanSyntaxChecker checker = BooleanSyntaxChecker.builder().setOid("1.2.3.4").build();
    assertFalse(checker.isValidSyntax(null));
}
Also used : BooleanSyntaxChecker(org.apache.directory.api.ldap.model.schema.syntaxCheckers.BooleanSyntaxChecker) Test(org.junit.Test)

Aggregations

BooleanSyntaxChecker (org.apache.directory.api.ldap.model.schema.syntaxCheckers.BooleanSyntaxChecker)1 Test (org.junit.Test)1