jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Slava Imeshev <imes...@yahoo.com>
Subject Re: Multi Step Tests - Better HttpUnit Integration
Date Thu, 26 Sep 2002 22:28:35 GMT

You may want to look at 
that offers OrderedTestSuite class. The class
allows to set a particular order of test 

Basically this page: 
is good. For example, I found there a JUnit 
extension that allows to set up database state
for a test case, which is used with cactus
makes testing Entity EJBs really neat.

Hope this helps.


Slava Imeshev

--- Steve Appling <steve100@appling.org> wrote:
> What Cactus buys me is the ability to have a test running in the container
> with an instance of my servlet.  After all of the setup (which is what I am
> using HttpUnit for) I can make asserts about the internal state of my
> Servlet.  I don't have a way of doing this by just looking at the servlet's
> response with HttpUnit.
> It may be possible to preset the state of my system before this one call,
> but it would be extremely complicated.  The particular servlets under test
> rely on other parts of the web application being set up.  Some of those
> parts are outside of my control and do not have a convenient mechanism to
> initialize them to a particular state.  It seems that the most reliable way
> of running my test in the actual context that the code will execute under
> when in production is to actually generate the required pre-requisite
> requests.

Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!

To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>

View raw message