That is what I thought, but according to the debug messages I print in
the beginXXX method, it is not already called when the program enter in
setUp in server-side.
Could it be a problem of synchronizing ?
For example :
# public void beginAdd(WebRequest p_req){
# System.out.println("Entering in begin");
# p_req.addParameter(BEAN_PARAM, beanKey);
# }
#
# public void setUp(){
# System.out.println("Entering in setUp");
# String beanKey = request.getParameter(BEAN_PARAM);
# MyVar var = getBean(beanKey).getVar();
# }
Result :
client-side console server-side
console
>There was 1 error : >Entering in setUp
>[...]NullPointerException
>at setUp
>[...]
Not seen any "Entering in begin"...
I don't unserstand :(
Thanks for you help,
Romain
Kazuhito SUGURI a écrit :
Hi Romain,
In article <[EMAIL PROTECTED]>,
Wed, 03 Aug 2005 14:56:57 +0200,
Romain Thouvenin <[EMAIL PROTECTED]> wrote:
rthouvenin> I tried this morning, but it still have the same NullPointerException.
rthouvenin> It seems that the begin method is called after the setUp method
rthouvenin> (messages printed in the begin method never appear in the console). I
rthouvenin> believed it is the contrary, isn't it ?
At server-side, begin method will never be called.
The execution sequence of a test method is roughly as follows:
client-side JVM server-side JVM
--------------------------------------------------------------
begin(WebRequest)
beginXXX(WebRequest)
-- send HTTP request -->
XXXTestCase(String) :construct
setUp()
testXXX()
tearDown()
<-- return HTTP response --
endXXX(WebResponse)
end(WebResponse)
# Though it's not accurate...
Is this helps you?
----
Kazuhito SUGURI
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]