Search in sources :

Example 11 with TelephoneNumberNormalizer

use of org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer 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"));
}
Also used : TelephoneNumberNormalizer(org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer) TelephoneNumberNormalizer(org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer) Normalizer(org.apache.directory.api.ldap.model.schema.Normalizer) Test(org.junit.Test)

Example 12 with TelephoneNumberNormalizer

use of org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer 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"));
}
Also used : TelephoneNumberNormalizer(org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer) TelephoneNumberNormalizer(org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer) Normalizer(org.apache.directory.api.ldap.model.schema.Normalizer) Test(org.junit.Test)

Aggregations

Normalizer (org.apache.directory.api.ldap.model.schema.Normalizer)12 TelephoneNumberNormalizer (org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer)12 Test (org.junit.Test)12