Never return Null Arrays – really?

Scott Selikoff recently posted that we should “never return null arrays”. I’m not sure I entirely agree. Both the tone of the article and the comments so far seem to be in agreement, but I am still not so sure. I’ll skip the terminology issue for the moment, just note that an array in Java …

Continue reading ‘Never return Null Arrays – really?’ »

mockito 1.5 and spying on objects

Mockito is a Java Mock objects framework which seems more usable than either of the main contenders (JMock and EasyMock). The project has just released a new version which now allows the attachment of a mock “overlay” to an existing object. This has been on my “evaluate” stack for months, but (as Harry Pynn pointed …

Continue reading ‘mockito 1.5 and spying on objects’ »