AppFuse Changes: Unit Testing with Easy Mock and Spring's Struts Plugin
I have a couple of proposal for the next AppFuse release. Let me know what you think:
- Change service and action/controller tests to use Easy Mock to mock dependencies. This will likely require a bit more code in the test, but it'll allow true unit testing of components. Current tests are more like integrations tests, which tend to be slower. The Canoo WebTests will continue to act as the integration tests that verify functionality top-to-bottom.
- Change Struts to use Spring's Struts Plugin. XDoclet's Spring stuff should make this pretty easy so you don't have to modify any XML - just like the current situation. The advantage of this is you can use dependency injection on your actions, rather than getBean(...).
I hope to get these in, along with a WebWork option, in the 1.6 release. I'd love to get 1.6 done and released in August, but I'm probably dreaming since I'd like to finish Spring Live in the same time frame. Of course, I'm also planning on fixing any bugs that are currently entered.
Posted by Dave Keller on August 02, 2004 at 07:02 PM MDT #
Posted by No one on August 02, 2004 at 07:24 PM MDT #
Posted by Yong How on August 03, 2004 at 02:46 AM MDT #
Seriously speaking, Matt, I think the WebWork option should be highest on the list - you've been threatening to do it for a long time (you should read your own Roadmap more often...). I also think the Spring Struts plugin would be of higher value than Easy Mock for this release. I'd vote for doing Easy Mock in 1.6.1 as it's less of a "feature" and you have existing tests that work fine. It'd be better to focus on redoing all the tests all by themselves rather than mixed in with adding features, and also making 1.6.1 a really stable low-bug-count release. IMHO, of course.
Posted by gerryg on August 03, 2004 at 02:50 PM MDT #
Posted by Matt Raible on August 03, 2004 at 02:52 PM MDT #
Posted by Dave Keller on August 03, 2004 at 09:31 PM MDT #
Posted by Matt Raible on August 03, 2004 at 09:43 PM MDT #
Posted by Dave Keller on August 03, 2004 at 11:50 PM MDT #
Posted by 24.27.58.11 on August 04, 2004 at 03:32 PM MDT #
Posted by Matt Raible on August 04, 2004 at 04:37 PM MDT #
Posted by Dion Almaer on August 04, 2004 at 05:14 PM MDT #
Posted by 24.27.58.11 on August 04, 2004 at 08:12 PM MDT #