Search in sources :

Example 6 with TelephoneNumberNormalizer

use of org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer in project directory-ldap-api by apache.

the class TelephoneNumberNormalizerTest method testTelephoneNumberNormalizerOneHyphen.

@Test
public void testTelephoneNumberNormalizerOneHyphen() throws LdapException {
    Normalizer normalizer = new TelephoneNumberNormalizer();
    assertEquals("", normalizer.normalize("-"));
}
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 7 with TelephoneNumberNormalizer

use of org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer 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));
}
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 8 with TelephoneNumberNormalizer

use of org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer 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(" -- - -- "));
}
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 9 with TelephoneNumberNormalizer

use of org.apache.directory.api.ldap.model.schema.normalizers.TelephoneNumberNormalizer 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("--"));
}
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 10 with TelephoneNumberNormalizer

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