@@ -0,0 +1,877 @@
+package com.levelup.java.junit;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.AfterClass;%0Aimport org.junit.FixMethodOrder;%0Aimport org.junit.Test;%0Aimport org.junit.runners.MethodSorters;%0A%0A/**%0A * This java example will demonstrate how to specify %0A * execution order of junit tests. %0A *  %0A * @author Justin Musgrove%0A * @see %3Ca href='http://www.leveluplunch.com/java/example/junit-specify-order-of-tests/'%3ESpecify order of tests%3C/a%3E%0A * %0A */%0A@FixMethodOrder(MethodSorters.NAME_ASCENDING)%0Apublic class SpecifyOrderOfTests %7B%0A%0A%09private static String executionOrder = %22%22;%0A%0A%09@Test%0A%09public void c_three () %7B%0A%09%09executionOrder += %22three%22;%0A%09%7D%0A%0A%09%0A%09@Test%0A%09public void a_one () %7B%0A%09%09executionOrder += %22one%22;%0A%09%7D%0A%09%0A%09@Test%0A%09public void b_two () %7B%0A%09%09executionOrder += %22two%22;%0A%09%7D%0A%09%0A%09@AfterClass%0A%09public static void validate () %7B%0A%09%09assertEquals(%22onetwothree%22, executionOrder);%0A%09%7D%0A%09%0A%7D%0A

add specify order of tests