Monday, April 19, 2010

Nesting JUnit TestCases

I recently decided to see if I could test some Mule configuration using Concordion. I had my Mule unit test, which extends org.mule.tck.FunctionalTestCase, and my Concordion unit test which extends org.concordion.integration.junit3.ConcordionTestCase. Given that my test class can't extend both of them I had to introduce a little delegation.

Here's the somewhat clunky solution I threw together. It works, and I didn't have to change either the Mule or Concordion code base, but there must be a nicer way.

No comments:

Post a Comment