03 2021 档案
摘要:饿汉模式 public class Singleton1 implements Serializable { private static Singleton1 instance = new Singleton1(); private Singleton1(){ } public static Si
阅读全文
摘要:添加依赖 <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.8.8</version> <scope>test</scope> </dependency> 使用DataProvi
阅读全文
摘要:两种方式 测试 该接口的单元测试的方法,在@Test 里面加上异常的 class名称 @Test(expectedExceptions= {NestedServletException.class}) public void testCreateServiceWithInvalidParamters
阅读全文

浙公网安备 33010602011771号