Package org.apache.wicket.util.convert.converter

Examples of org.apache.wicket.util.convert.converter.LongConverter.convertToString()


  public void longConversions()
  {
    LongConverter converter = new LongConverter();
    assertNull(converter.convertToObject("", Locale.US));
    assertEquals(new Long(10), converter.convertToObject("10", Locale.US));
    assertEquals("10", converter.convertToString((long)10, Locale.US));
    try
    {
      converter.convertToObject("whatever", Locale.US);
      fail("Conversion should have thrown an exception");
    }
View Full Code Here


   */
  public void testLongConversions()
  {
    LongConverter converter = new LongConverter();
    assertEquals(new Long(10), converter.convertToObject("10", Locale.US));
    assertEquals("10", converter.convertToString((long) 10, Locale.US));
    try
    {
      converter.convertToObject("whatever", Locale.US);
      fail("Conversion should have thrown an exception");
    }
View Full Code Here

  public void testLongConversions()
  {
    LongConverter converter = new LongConverter();
    assertNull(converter.convertToObject("", Locale.US));
    assertEquals(new Long(10), converter.convertToObject("10", Locale.US));
    assertEquals("10", converter.convertToString((long)10, Locale.US));
    try
    {
      converter.convertToObject("whatever", Locale.US);
      fail("Conversion should have thrown an exception");
    }
View Full Code Here

   */
  public void testLongConversions()
  {
    LongConverter converter = new LongConverter();
    assertEquals(new Long(10), converter.convertToObject("10", Locale.US));
    assertEquals("10", converter.convertToString(new Long(10), Locale.US));
    try
    {
      converter.convertToObject("whatever", Locale.US);
      fail("Conversion should have thrown an exception");
    }
View Full Code Here

   */
  public void testLongConversions()
  {
    LongConverter converter = new LongConverter();
    assertEquals(new Long(10), converter.convertToObject("10", Locale.US));
    assertEquals("10", converter.convertToString((long)10, Locale.US));
    try
    {
      converter.convertToObject("whatever", Locale.US);
      fail("Conversion should have thrown an exception");
    }
View Full Code Here

  public void longConversions()
  {
    LongConverter converter = new LongConverter();
    assertNull(converter.convertToObject("", Locale.US));
    assertEquals(new Long(10), converter.convertToObject("10", Locale.US));
    assertEquals("10", converter.convertToString((long)10, Locale.US));
    try
    {
      converter.convertToObject("whatever", Locale.US);
      fail("Conversion should have thrown an exception");
    }
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.