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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: