Package com.humaorie.dollar.ArrayWrapper

Examples of com.humaorie.dollar.ArrayWrapper.BooleanArrayWrapper.toBooleanArray()


    @Test
    public void unboxBooleanArray() {
        Boolean[] boxed = new Boolean[]{true, true, false};
        BooleanArrayWrapper arrayWrapper = new BooleanArrayWrapper(boxed);
        final boolean[] expected = new boolean[]{true, true, false};
        Assert.assertTrue(Arrays.equals(expected, arrayWrapper.toBooleanArray()));
    }

    @Test
    public void unboxBooleanArrayWithNulls() {
        Boolean[] boxed = new Boolean[3];
View Full Code Here


    @Test
    public void unboxBooleanArrayWithNulls() {
        Boolean[] boxed = new Boolean[3];
        BooleanArrayWrapper arrayWrapper = new BooleanArrayWrapper(boxed);
        final boolean[] expected = new boolean[]{false, false, false};
        Assert.assertTrue(Arrays.equals(expected, arrayWrapper.toBooleanArray()));
    }

    @Test
    public void unboxByteArray() {
        Byte[] boxed = new Byte[]{42, 43, 44};
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.