摘要: 单元测试 Junit常用注解 | 注解 | 说明 | | | | | @Test | 测试方法 | | @Before(Junit 4)@BeforeEach(Junit 5) | 用来修饰实例方法,该方法会在每一个测试方法执行之前执行一次。 | | @After(Junit4)@AfterEach 阅读全文
posted @ 2022-09-25 12:45 TimQiu 阅读(69) 评论(2) 推荐(0)
摘要: 网络通信三要素 分别是IP地址、端口号和协议 IP地址操作类—InetAddress | 名称 | 说明 | | | | | public static InetAddress getLocalHost() | 返回本主机的地址对象 | | public static InetAddress get 阅读全文
posted @ 2022-09-25 11:34 TimQiu 阅读(23) 评论(0) 推荐(0)