Author Archives: Jason

About Jason

Avid reader, moderately successful programmer, decent troubleshooter, middling-at-best chess player.

Testing exception handling with Groovy

I mentioned that sometimes using mocks created via Map coercion in Groovy didn’t always work as expected.  Here’s a concrete example. Here’s an exception handling code block that I’m trying to test, removing everything except the relevant bits: public void performActivity() throws ActivityException { try {    // create a… Read more »