有时候,我们希望用例按照我们要求的顺序来执行。TestNG 同样可以满足这一点要求。
import org.testng.annotations.Test; import static org.testng.AssertJUnit.assertEquals; public class