【JAVA-UT】9、Rule--个体的规范

文|码术张 #####一、如何使用Rule 下面这个测试类TimeoutTest,有两个Test方法,分别在打印一个字母后,睡眠2000毫秒和4000毫秒。 public class TimeoutTest { @Test public void should_timeout1() throws InterruptedException { System.out.println("
相关文章
相关标签/搜索