The Artima Developer Community
Sponsored Link

Java Buzz Forum
HttpUnit good, Cactus not so good

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Steve Conover

Posts: 37
Nickname: sgcjr
Registered: Feb, 2003

Steve Conover is a professional Java engineer and consultant
HttpUnit good, Cactus not so good Posted: Jun 26, 2003 10:58 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Steve Conover.
Original Post: HttpUnit good, Cactus not so good
Feed Title: Steve Conover's Weblog
Feed URL: http://www.sonic.net/~conover/index.rdf
Feed Description: Mostly java-related.
Latest Java Buzz Posts
Latest Java Buzz Posts by Steve Conover
Latest Posts From Steve Conover's Weblog

Advertisement
HttpUnit is a great tool, it has some nice abstractions that insulate you from view logic changes. UI people are unlikely to break your tests (how often is it that a developer isn't involved in a decision to, say, add or remove a form field? Change the format of a url? Probably never.). OTOH, I'm not a big fan of Cactus. I got it working a while back, and was uncomfortable with in-container testing. After all, what's the guarantee that once you remove the test-support classes from your server, that things will still work? It's not very likely that they won't, but I'd rather have the exact same server environment in both dev and production. In addition, I'm not sold on the benefits of in-container testing. Since Webwork doesn't require an HttpServletRequest or Response to be passed into its actions (vs another popular MVC framework), I get nearly complete unit-test coverage of my server code without a running servlet engine. Couple that with HttpUnit acceptance/functional tests and you have 100% coverage. Why do I need Cactus? I barely even need MockObjects with this setup....

Read: HttpUnit good, Cactus not so good

Topic: A tenuous argument, but.... Previous Topic   Next Topic Topic: Checkstyle, a victim of its early success

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use