Package com.humaorie.dollar.ArrayWrapper

Examples of com.humaorie.dollar.ArrayWrapper.CharArrayWrapper.toCharArray()


    // unboxing
    @Test
    public void unboxCharacterArray() {
        Character[] boxed = new Character[]{'f', 'o', 'o'};
        CharArrayWrapper arrayWrapper = new CharArrayWrapper(boxed);
        Assert.assertArrayEquals(new char[]{'f', 'o', 'o'}, arrayWrapper.toCharArray());
    }

    @Test
    public void unboxCharacterArrayToByteArray() {
        Character[] boxed = new Character[] { 'f', 'o', 'o' };
View Full Code Here


    @Test
    public void unboxCharacterArrayWithNulls() {
        Character[] boxed = new Character[3];
        CharArrayWrapper arrayWrapper = new CharArrayWrapper(boxed);
        Assert.assertArrayEquals(new char[]{0, 0, 0}, arrayWrapper.toCharArray());
    }

    @Test
    public void unboxBooleanArray() {
        Boolean[] boxed = new Boolean[]{true, true, false};
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.