jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kazuhito SUGURI <suguri.kazuh...@lab.ntt.co.jp>
Subject Re: The BeginXXX method is not getting called
Date Thu, 16 Mar 2006 05:27:03 GMT

In article <a8919d290603150753r1d6f6672he2d829405fdd06a9@mail.gmail.com>,
Wed, 15 Mar 2006 10:53:40 -0500,
"Chris Allen" <mrchrisallen@gmail.com> wrote: 
mrchrisallen> You can always put a call to your method in setUp() .  Just override
mrchrisallen> that method and it is guaranteed to be called when the tests for this
mrchrisallen> class begins. You can create one that looks like this and it should
mrchrisallen> work fine:
mrchrisallen>         protected void setUp() throws Exception {
mrchrisallen> 		super.setUp();
mrchrisallen>                 //call your method here
mrchrisallen>                 beginXXX();
mrchrisallen> 	}

One should not do so in the Cactus world, I think.
setUp() and beginXXX() are having differnt role in test execution.

See: http://jakarta.apache.org/cactus/how_it_works.html

Kazuhito SUGURI

View raw message