Which version of JUnit works for Java 1.4? Looking at the JUnit 3 and 4 docs, I can’t figure it out.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JUnit 4 is backward-compatible with JUnit 3. You would have to confine yourself to the JUnit 3 API, obviously, since annotations are out of the question for jdk1.4. The bigger problem is that JUnit 4 classes would be compiled with jdk1.5, which the java 1.4 compiler would probably not like. Since you can’t benefit from the newer functionality anyway you should probably stick with JUnit 3.