Package net.hasor.test.junit

Examples of net.hasor.test.junit.TestOrder


        }
        //3.获取测试方法上的 @Order 注解,并对所有的测试方法重新排序
        Collections.sort(toRunMethodList, new Comparator<FrameworkMethod>() {
            @Override
            public int compare(final FrameworkMethod m1, final FrameworkMethod m2) {
                TestOrder o1 = m1.getAnnotation(TestOrder.class);
                TestOrder o2 = m2.getAnnotation(TestOrder.class);
                if (o1 == null || o2 == null) {
                    return 0;
                }
                return o1.value() - o2.value();
            }
        });
        return toRunMethodList;
    }
View Full Code Here

TOP

Related Classes of net.hasor.test.junit.TestOrder

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.