>Can I resonably use Mockito with jdk 1.4 ?
Mockito doesn't work with jdk 1.4 because it's compiled for 1.5. Some
java5 features are essential for Mockito mocking syntax.
However, one of the user came up with very interesting idea: given you
don't want to upgrade your production code to java 1.4 for whatever
reason, you can at least upgrade your *test code* to 1.5 and compile
your test code with 1.5 compatibility. Never tried it but in theory it
should work: your prod classes compiled with 1.4, test code with 1.5.
Check out the other thread related to 1.4 on this mailing list.
Good luck!
Cheers,
Szczepan Faber