@@ -0,0 +1,903 @@
+package com.algorithms.sort;%0A%0Aimport org.testng.annotations.BeforeClass;%0Aimport org.testng.annotations.Test;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Random;%0A%0A/**%0A * Created by yu on 2016/10/21.%0A */%0A@Test%0Apublic class ReversedSortTest %7B%0A%0A    private List%3Cint%5B%5D%3E dataList = null;%0A%0A    @BeforeClass%0A    public void init() %7B%0A        this.dataList = new ArrayList%3C%3E();%0A        this.dataList.add(getReversedData(1000));%0A        this.dataList.add(getReversedData(10000));%0A        this.dataList.add(getReversedData(100000));%0A    %7D%0A%0A    private int%5B%5D getReversedData(int size) %7B%0A        int%5B%5D data = new int%5Bsize%5D;%0A        Random random = new Random();%0A        int min = 0;%0A        int gap = Integer.MAX_VALUE / 1000;%0A        for (int i = 0; i %3C data.length; i++) %7B%0A            data%5Bi%5D = random.nextInt((gap + 1)) + min;%0A            min += gap;%0A        %7D%0A        return data;%0A    %7D%0A%7D

add sort test