use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class TelephoneNumberNormalizerTest method testTelephoneNumberNormalizerNull.
@Test
public void testTelephoneNumberNormalizerNull() throws LdapException {
Normalizer normalizer = new TelephoneNumberNormalizer();
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 TelephoneNumberNormalizerTest method testTelephoneNumberNormalizerHyphensSpaces.
@Test
public void testTelephoneNumberNormalizerHyphensSpaces() throws LdapException {
Normalizer normalizer = new TelephoneNumberNormalizer();
assertEquals("", normalizer.normalize(" -- - -- "));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class TelephoneNumberNormalizerTest method testTelephoneNumberNormalizerTwoHyphen.
@Test
public void testTelephoneNumberNormalizerTwoHyphen() throws LdapException {
Normalizer normalizer = new TelephoneNumberNormalizer();
assertEquals("", normalizer.normalize("--"));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class TelephoneNumberNormalizerTest method testTelephoneNumberNormalizerNSpaces.
@Test
public void testTelephoneNumberNormalizerNSpaces() throws LdapException {
Normalizer normalizer = new TelephoneNumberNormalizer();
assertEquals("", normalizer.normalize(" "));
}
use of org.apache.directory.api.ldap.model.schema.Normalizer in project directory-ldap-api by apache.
the class TelephoneNumberNormalizerTest method testInsignifiantSpacesStringNChars.
@Test
public void testInsignifiantSpacesStringNChars() throws LdapException {
Normalizer normalizer = new TelephoneNumberNormalizer();
assertEquals("123456", normalizer.normalize("123456"));
}
Aggregations