Steve, You may want to look at http://gsbase.sourceforge.net/#testing that offers OrderedTestSuite class. The class allows to set a particular order of test execution.
Basically this page: http://www.junit.org/news/extension/index.htm 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. Regards, Slava Imeshev --- Steve Appling <[EMAIL PROTECTED]> 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! http://sbc.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
