Package is.us.formatters

Examples of is.us.formatters.USPersidnoFormatter


  @Test
  public void parsing() throws ParseException {
    String input = "091179-4829";
    String expected = "0911794829";

    USPersidnoFormatter formatter = new USPersidnoFormatter();
    assertEquals( formatter.parseObject( input ), expected );
  }
View Full Code Here


  @Test
  public void formatting() {
    String input = "0911794829";
    String expected = "091179-4829";

    USPersidnoFormatter formatter = new USPersidnoFormatter();
    assertEquals( formatter.format( input ), expected );
    assertEquals( formatter.format( null ), "" );
  }
View Full Code Here

TOP

Related Classes of is.us.formatters.USPersidnoFormatter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.