JUnit 4.x最新版本

不知道为什么,Android Studio创建新项目时,默认的JUnit版本如下:

kotlin 复制代码
junit = "4.14-SNAPSHOT"

根本没有这个版本,所以,如果你使用测试功能的话,编译运行一定会报错。

JUnit 4.x 系列的最新正式发布版本是 JUnit 4.13.2,这是 JUnit 4 在维护模式下的最后一个发布版本,在 Maven Central 上最新的对应版本号也是 4.13.2

JUnit 4 已经处于维护模式,团队只会修复关键 bug 或安全问题,不会有新功能开发。如需最新版特性和长期支持,建议考虑迁移到 JUnit 5或更新的版本。所以,搞不懂Android官方为什么不是默认使用 JUnit 5,难道是还没支持?

相关推荐
DJ斯特拉2 天前
Redis使用lua脚本
junit·单元测试·lua
2301_771717213 天前
idea中springboot中使用junit测试报错的解决方案
spring boot·junit·intellij-idea
Java成神之路-4 天前
Spring 整合 MyBatis 全流程详解(附 Junit 单元测试实战)(Spring系列6)
spring·junit·mybatis
難釋懷5 天前
OpenResty封装Redis工具
redis·junit·openresty
希望永不加班7 天前
SpringBoot 接口测试:Postman 与 JUnit 5 实战
java·spring boot·后端·junit·postman
難釋懷7 天前
OpenResty基于ID负载均衡
junit·负载均衡·openresty
難釋懷7 天前
OpenResty-CJSON工具类
junit·openresty
難釋懷8 天前
OpenResty封装http工具
http·junit·openresty
難釋懷10 天前
OpenResty监听请求
junit·openresty
難釋懷10 天前
OpenResty获取参数的API
junit·openresty