Andrew Larkin: “5 Lessons JavaScripters Can Learn From Java Unit Testing”

Andrew Larkin, fellow CIMer, recently posted some thoughts on unit testing in Javascript that are worth a read. Up with Unit Testing!

Using EasyMock

Good refreshers:

IBM developerWorks: Elliotte Rusty Harold: “Easier testing with EasyMock”.

Mocking in Java: jMock vs. EasyMock.

Correcting deficient JUnit behavior in Netbeans

Eclipse gets this correct ‘out of the box’, when running a unit test – you want to be able to follow a test failure into the source code of the actual test with a click or keyboard shortcut. Netbeans, with pre-existing projects managed with Maven, doesn’t seem to do that. There is a fix on the wiki I need to give a shot.