Package com.humaorie.dollar.ArrayWrapper

Examples of com.humaorie.dollar.ArrayWrapper.ShortArrayWrapper.toShortArray()


    @Test
    public void unboxShortArray() {
        final Short[] boxed = {42};
        final short[] unboxed = {42};
        final ShortArrayWrapper arrayWrapper = new ShortArrayWrapper(boxed);
        Assert.assertArrayEquals(unboxed, arrayWrapper.toShortArray());
    }

    @Test
    public void unboxShortArrayToIntArray() {
        final Short[] boxed = {42};
View Full Code Here


    @Test
    public void unboxShortArrayWithNulls() {
        final Short[] boxed = {null};
        final short[] unboxed = {0};
        final ShortArrayWrapper arrayWrapper = new ShortArrayWrapper(boxed);
        Assert.assertArrayEquals(unboxed, arrayWrapper.toShortArray());
    }

    @Test
    public void unboxIntegerArray() {
        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.