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

java的unity单元测试

java的unity单元测试

可以定义方法的执行顺序

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2021-12-06
  • 2021-12-25
  • 2022-01-20
猜你喜欢
  • 2022-01-14
  • 2021-06-28
  • 2021-06-21
  • 2021-09-15
  • 2021-12-27
  • 2022-01-07
相关资源
相似解决方案