Maven1, JUnit4, TestNG

January 8, 2007

The long awaited fix that enables maven2 to work with JUnit4 has finally been applied. Hopefully it will be in a snapshot near you soon.

I’m afraid I lost patience, and defected to TestNG (encouraged by Nate Sarr). The differences for simple use are pretty trivial (a different @Test annotation to mark test cases, expected exceptions pretty much the same and so on). Even now though, I’m pretty convinced by the use of Java 1.4 assert statements rather than Assert.assertFoo method calls.

TestNG always seemed like the Betamax of unit testing, and since I haven’t used any of the whizzier features yet, perhaps that’s fair.