java的unity单元测试
Posted 篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java的unity单元测试相关的知识,希望对你有一定的参考价值。 可以定义方法的执行顺序 以上是关于java的unity单元测试的主要内容,如果未能解决你的问题,请参考以下文章 Unity 单元测试(NUnit,UnityTestTools)tags:
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class TestUnit {
public static void main(String[] args) {
System.out.println("aa");
}
@Test
public void testJunit(){
System.out.println("hello junit!");
}
@Before
public void testBefore(){
System.out.println("before!");
}
@After
public void testAfter(){
System.out.println("after!");
}
}