use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class DeepTrimToLowerNormalizerTest method testInsignifiantSpacesStringNChars.
@Test
public void testInsignifiantSpacesStringNChars() throws LdapException {
Normalizer normalizer = new DeepTrimToLowerNormalizer("1.1.1");
assertEquals(" aaaaa ", normalizer.normalize("aaaaa"));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class NumericNormalizerTest method testNumericNormalizerNull.
@Test
public void testNumericNormalizerNull() throws LdapException {
Normalizer normalizer = new NumericNormalizer();
assertEquals(null, normalizer.normalize((String) null));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class NumericNormalizerTest method testNumericNormalizerTwoSpaces.
@Test
public void testNumericNormalizerTwoSpaces() throws LdapException {
Normalizer normalizer = new NumericNormalizer();
assertEquals("", normalizer.normalize(" "));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class NumericNormalizerTest method testNumericNormalizerOneSpace.
@Test
public void testNumericNormalizerOneSpace() throws LdapException {
Normalizer normalizer = new NumericNormalizer();
assertEquals("", normalizer.normalize(" "));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class NumericNormalizerTest method testInsignifiantSpacesStringTwoChars.
@Test
public void testInsignifiantSpacesStringTwoChars() throws LdapException {
Normalizer normalizer = new NumericNormalizer();
assertEquals("11", normalizer.normalize("11"));
}
Aggregations