Package org.terasology.rendering.logic

Examples of org.terasology.rendering.logic.NearestSortingList$SortTask


        String[] str = new String[4];
        str[0] = "4";
        str[1] = "1";
        str[2] = "3";
        str[3] = "2";
        SortTask st = new SortTask(str);
        int[] res = st.call();
        Assert.assertArrayEquals(new int[]{1, 2, 3, 4}, res);
    }
View Full Code Here


        String[] str = new String[4];
        str[0] = "4";
        str[1] = null;
        str[2] = "3";
        str[3] = "2";
        SortTask st = new SortTask(str);
        int[] res = st.call();
        Assert.assertArrayEquals(new int[]{1, 2, 3, 4}, res);
    }
View Full Code Here

    }

    @Test
    public void testSortTaskEmpty() throws Exception {
        String[] str = new String[0];
        SortTask st = new SortTask(str);
        int[] res = st.call();
        Assert.assertArrayEquals(new int[]{}, res);
    }
View Full Code Here

TOP

Related Classes of org.terasology.rendering.logic.NearestSortingList$SortTask

Copyright © 2018 www.massapicom. 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.