Package com.izylab.izyutils.convertermanager.converter

Examples of com.izylab.izyutils.convertermanager.converter.StringNumberConverter


  @Test
  public void testArgMismatch() {
      expectedEx.expect(ConversionFailedException.class);
      expectedEx.expectMessage(String.format(Message.CONV_ARG_MISMATCH.getString(),
          Integer.class, String.class, StringNumberConverter.class));
    cm.registerConverter(new StringNumberConverter());
    String value = cm.convert(100, String.class, 0);
    assertThat(value, is(notNullValue()));
    assertThat(value, is("100"));
  }
View Full Code Here

TOP

Related Classes of com.izylab.izyutils.convertermanager.converter.StringNumberConverter

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.