@Test public void testInsignifiantTelephoneNumberCharsSpaces() throws LdapException { Normalizer normalizer = new TelephoneNumberNormalizer(); assertEquals( "1", normalizer.normalize( " 1" ) ); assertEquals( "1", normalizer.normalize( "1 " ) ); assertEquals( "1", normalizer.normalize( " 1 " ) ); assertEquals( "11", normalizer.normalize( "1 1" ) ); assertEquals( "11", normalizer.normalize( " 1 1" ) ); assertEquals( "11", normalizer.normalize( "1 1 " ) ); assertEquals( "11", normalizer.normalize( "1 1" ) ); assertEquals( "11", normalizer.normalize( " 1 1 " ) ); assertEquals( "123456789", normalizer.normalize( " 123 456 789 " ) ); assertEquals( "1", normalizer.normalize( "-1" ) ); assertEquals( "1", normalizer.normalize( "1-" ) ); assertEquals( "1", normalizer.normalize( "-1-" ) ); assertEquals( "11", normalizer.normalize( "1-1" ) ); assertEquals( "11", normalizer.normalize( "-1-1" ) ); assertEquals( "11", normalizer.normalize( "1-1-" ) ); assertEquals( "11", normalizer.normalize( "1--1" ) ); assertEquals( "11", normalizer.normalize( "-1---1-" ) ); assertEquals( "1(2)+3456789", normalizer.normalize( "---1(2)+3 456- 789 --" ) ); }
@Override public String normalize( String value ) throws LdapException { return normalize( value, PrepareString.AssertionType.ATTRIBUTE_VALUE ); }
TelephoneNumberNormalizer extends Normalizer { @Override public String normalize( String value ) throws LdapException { return normalize( value, PrepareString.AssertionType.ATTRIBUTE_VALUE ); } }
TelephoneNumberNormalizer extends Normalizer { @Override public String normalize( String value ) throws LdapException { return normalize( value, PrepareString.AssertionType.ATTRIBUTE_VALUE ); } TelephoneNumberNormalizer(); }
TelephoneNumberNormalizer extends Normalizer { @Override public String normalize( String value ) throws LdapException { return normalize( value, PrepareString.AssertionType.ATTRIBUTE_VALUE ); } TelephoneNumberNormalizer(); @Override String normalize( String value ); @Override String normalize( String value, PrepareString.AssertionType assertiontype ); }
TelephoneNumberNormalizer extends Normalizer { @Override public String normalize( String value ) throws LdapException { return normalize( value, PrepareString.AssertionType.ATTRIBUTE_VALUE ); } TelephoneNumberNormalizer(); @Override String normalize( String value ); @Override String normalize( String value, PrepareString.AssertionType assertiontype );  }