File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes Life after Cactus Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Life after Cactus" Watch "Life after Cactus" New topic
Author

Life after Cactus

Ed Napier
Greenhorn

Joined: Mar 10, 2010
Posts: 7

Over the years I've written boatloads of Junit method tests but never got around to actually doing anything in container (properly). For a variety of reasons, loading up cactus and doing in-container testing just seemed harder to work out than just running with breakpoints and logging things in a spreadsheet. However, as I've gotten busier, and processes and procedures have become more involved and time-consuming, that bias on my part isn't an option any more.
Unfortunately, Cactus is now pretty much dead. I couldn't even find a reasonably recent download of it any more.

What suggestions do people have for an easy to set up in-container test bed that works well with IBM RAD 8?


We learn more from our mistakes than our successes.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30512
    
150

What are you trying to test in container? A web page? An ejb? A spring bean?

The answer will determine the best advice.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ed Napier
Greenhorn

Joined: Mar 10, 2010
Posts: 7

In most cases they are classes that have one or more elements reading and/or writing to an Oracle db via a JNDI alias to a JDBC connection. A handful connect to some web service and the remainder are Struts 1.3 actions.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30512
    
150

For the Struts actions, I recommend Selenium or JWebUnit. Selenium tests through the browser. JWebUnit pretends to be a browser.

For EJBs, JUnit in Action (published a couple years ago) does recommend Cactus. Lately, I've been using Spring - which is the container so you just use the run with Spring annotations. That won't solve your problem though.
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1763
    
    7

The Cactus archive is still up, even if the project has been retired for some time.
You can download all sources and binaries here.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Ed Napier
Greenhorn

Joined: Mar 10, 2010
Posts: 7

Thanks all.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Life after Cactus