03 2021 档案

摘要:饿汉模式 public class Singleton1 implements Serializable { private static Singleton1 instance = new Singleton1(); private Singleton1(){ } public static Si 阅读全文
posted @ 2021-03-19 18:00 zendwang 阅读(50) 评论(0) 推荐(0)
摘要:添加依赖 <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.8.8</version> <scope>test</scope> </dependency> 使用DataProvi 阅读全文
posted @ 2021-03-02 09:20 zendwang 阅读(654) 评论(0) 推荐(0)
摘要:两种方式 测试 该接口的单元测试的方法,在@Test 里面加上异常的 class名称 @Test(expectedExceptions= {NestedServletException.class}) public void testCreateServiceWithInvalidParamters 阅读全文
posted @ 2021-03-02 08:39 zendwang 阅读(1002) 评论(0) 推荐(0)