Package com.humaorie.dollar.ArrayWrapper

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


    public void unboxIntegerArrayToDoubleArray() {
        final Integer[] boxed = { 42 };
        final double[] unboxed = { 42.0 };
        final IntegerArrayWrapper arrayWrapper = new IntegerArrayWrapper(
                boxed);
        Assert.assertArrayEquals(unboxed, arrayWrapper.toDoubleArray(), 0.001);
    }

    @Test
    public void unboxLongArray() {
        final Long[] boxed = {null};
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.