Package com.humaorie.dollar.ArrayWrapper

Examples of com.humaorie.dollar.ArrayWrapper.IntegerArrayWrapper.toIntArray()


    @Test
    public void unboxIntegerArray() {
        final Integer[] boxed = {42};
        final int[] unboxed = {42};
        final IntegerArrayWrapper arrayWrapper = new IntegerArrayWrapper(boxed);
        Assert.assertArrayEquals(unboxed, arrayWrapper.toIntArray());
    }

    @Test
    public void unboxIntegerArrayWithNulls() {
        final Integer[] boxed = {null};
View Full Code Here


    @Test
    public void unboxIntegerArrayWithNulls() {
        final Integer[] boxed = {null};
        final int[] unboxed = {0};
        final IntegerArrayWrapper arrayWrapper = new IntegerArrayWrapper(boxed);
        Assert.assertArrayEquals(unboxed, arrayWrapper.toIntArray());
    }

    @Test
    public void unboxIntegerArrayToLongArray() {
        final Integer[] boxed = {42};
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.