For a legacy project I have to work with JDK 1.3. Since I want to add some unit tests I'd like to know which is the latest JUnit release I can use for this project.
Since junit 4.x
is annotation based (but also supports the old style) it requires at least jdk 1.5
, for jdk 1.3
you need to go with junit 3.x
. See here .
1. JDK Required?
JUnit 4 requires Java 5 or higher, it uses a lot from Java 5 annotations, generics, and static import features. the JUnit 3.x version can work with JDK 1.2+ and any higher versions.
搜索到该问题之后,JUnit 3.4似乎与JDK 1.3兼容
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.