Tag Archives: groovy

Testing exception handling with Groovy

      No Comments on 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:

I’m writing a test to verify that an ActivityException  is returned when… Read more »