Package jodd.typeconverter.impl

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


    assertEq(arri(1, 7, 3), integerArrayConverter.convert(arrd(1.1, 7.99, 3)));
    assertEq(arri(173, 1022), integerArrayConverter.convert(arrs("173", "1022")));
    assertEq(arri(173, 10), integerArrayConverter.convert(arro("173", Integer.valueOf(10))));

    assertEq(arri(111, 777, 333), integerArrayConverter.convert(arrs("111", "   777     ", "333")));
    assertEq(arri(111, 777, 333), integerArrayConverter.convert("111,  777,  333"));

  }

  private void assertEq(int[] arr1, int[] arr2) {
    assertEquals(arr1.length, arr2.length);
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.