java的unity单元测试

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!");
    }
    
    
}

可以定义方法的执行顺序

猜你喜欢

转载自www.cnblogs.com/benjamin77/p/9164766.html