Package jodd.typeconverter.impl

Examples of jodd.typeconverter.impl.ShortConverter.convert()


    assertEquals(Short.valueOf((short) -1), shortConverter.convert(" -1 "));
    assertEquals(Short.valueOf((short) 32767), shortConverter.convert(" +32767 "));
    assertEquals(Short.valueOf((short) -32768), shortConverter.convert(" -32768 "));

    try {
      shortConverter.convert("a");
      fail();
    } catch (TypeConversionException ignore) {
    }
    try {
      shortConverter.convert("+32768");
View Full Code Here


      shortConverter.convert("a");
      fail();
    } catch (TypeConversionException ignore) {
    }
    try {
      shortConverter.convert("+32768");
      fail();
    } catch (TypeConversionException ignore) {
    }
    try {
      shortConverter.convert("-32769");
View Full Code Here

      shortConverter.convert("+32768");
      fail();
    } catch (TypeConversionException ignore) {
    }
    try {
      shortConverter.convert("-32769");
      fail();
    } catch (TypeConversionException ignore) {
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.