use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class TelephoneNumberNormalizerTest method testInsignifiantSpacesStringOneChar.
@Test
public void testInsignifiantSpacesStringOneChar() throws LdapException {
Normalizer normalizer = new TelephoneNumberNormalizer();
assertEquals("1", normalizer.normalize("1"));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class DeepTrimNormalizerTest method testInsignifiantSpacesStringOneChar.
@Test
public void testInsignifiantSpacesStringOneChar() throws LdapException {
Normalizer normalizer = new DeepTrimNormalizer("1.1.1");
assertEquals(" a ", normalizer.normalize("a"));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class DeepTrimNormalizerTest method testDeepTrimNormalizerOneSpace.
@Test
public void testDeepTrimNormalizerOneSpace() throws LdapException {
Normalizer normalizer = new DeepTrimNormalizer("1.1.1");
assertEquals(" ", normalizer.normalize(" "));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class DeepTrimNormalizerTest method testDeepTrimNormalizerTwoSpaces.
@Test
public void testDeepTrimNormalizerTwoSpaces() throws LdapException {
Normalizer normalizer = new DeepTrimNormalizer("1.1.1");
assertEquals(" ", normalizer.normalize(" "));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class DeepTrimNormalizerTest method testInsignifiantSpacesStringNChars.
@Test
public void testInsignifiantSpacesStringNChars() throws LdapException {
Normalizer normalizer = new DeepTrimNormalizer("1.1.1");
assertEquals(" aaaaa ", normalizer.normalize("aaaaa"));
}
Aggregations