Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 53280 invoked from network); 30 Nov 2003 09:18:45 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by daedalus.apache.org with SMTP; 30 Nov 2003 09:18:45 -0000 Received: (qmail 20774 invoked by uid 65534); 30 Nov 2003 09:18:56 -0000 Received: from cp397468-a.schoo1.lb.home.nl (EHLO heko2) (217.123.75.13) by mail.gmx.net (mp022) with SMTP; 30 Nov 2003 10:18:56 +0100 X-Authenticated: #1037388 From: "Henner Kollmann" To: "'Cactus Users List'" Subject: AW: Transferring data between client and server side Date: Sun, 30 Nov 2003 10:18:25 +0100 Message-ID: <000901c3b722$e90b2a60$6501a8c0@heko.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <009e01c3b722$1b5a0000$2502a8c0@vma> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Vincent, Yes you are write. I the mean time i have rewritten my tests work with = the cactus architecture. Thanks again, Henner > -----Urspr=FCngliche Nachricht----- > Von: Vincent Massol [mailto:vmassol@pivolis.com]=20 > Gesendet: Sonntag, 30. November 2003 10:13 > An: 'Cactus Users List' > Betreff: RE: Transferring data between client and server side >=20 >=20 > Henner, >=20 > You seem to know the expected value so why bother? What value=20 > are you expecting in your endXXX() method? 2.3? Then check if=20 > that's the value received. Of course in testXXX() you should=20 > set the locale so that you can control the environment of your test. >=20 > That's really the main point. When writing unit tests you=20 > must control completely your environment from your tests so=20 > that your tests are reproducible. >=20 > The Cactus architecture says the client and server parts=20 > execute in different JVM. The fact that the Eclipse plugin=20 > was executing in the same VM is pure luck and may change in=20 > any future version of the plugin (it's not a feature - it's=20 > an implementation detail that should not be relied upon). >=20 > There's currently no easy way to pass information from server=20 > to client (apart from HTTP cookies, HTTP headers and response=20 > content). You should always try not to pass anything because=20 > doing so shows that you are not controlling your test, i.e.=20 > the expected value is not fixed and controlled. >=20 > Hope this makes sense >=20 > Thanks > -Vincent >=20 > > -----Original Message----- > > From: Henner Kollmann [mailto:Henner.Kollmann@gmx.de] > > Sent: 30 November 2003 09:19 > > To: 'Cactus Users List' > > Subject: AW: Transferring data between client and server side > >=20 > > Vincent, > >=20 > > I want to initialize a double variable in the very beginning of the > test > > with a value e.g. 2.3. Then i want to sent it to the client=20 > side look > if > > it's really there. On the way to the client side this variable is=20 > > transformed to text according current to locale, e.g. german. So on > the > > client side it looks like 2,3. On the way back in the server this=20 > > variable is transformed again to double according the previous used=20 > > locale. The result should be 2.3 again. > >=20 > > The transformer objects are initialized on the server side. I need > them on > > the client side to do a first test if the variables on the=20 > client side > are > > transformed correct. > >=20 > > Using the eclipse plugin this works. I think because the eclipse > plugin > > let > > the client and server side run in the same virtual machine. > >=20 > > Using the maven plugin this do not works because both run=20 > in different=20 > > machine. > >=20 > > Hope that it is clearly now! > >=20 > > Regards, > > Henner > >=20 > > > Henner, > > > > > > What is your use case? I've not seen yet a use case where=20 > this was=20 > > > needed and I'm curious. > > > > > > Thanks > > > -Vincent > > > > > > > -----Original Message----- > > > > From: Henner Kollmann [mailto:Henner.Kollmann@gmx.de] > > > > Sent: 01 November 2003 15:47 > > > > To: cactus-user@jakarta.apache.org > > > > Subject: Transferring data between client and server side > > > > > > > > Hi all, > > > > > > > > Any idea how i can share data between testXXX and=20 > endXXX methods? > > > > > > > > E.g. i have a varialbe wich should be initialized in the testXXX > > > method > > > > and > > > > i want use this object in the endXX method to test. > > > > > > > > This works if i use the eclipse plugin with an static=20 > variable. If > i > > > let > > > > the > > > > maven task run for testing the static variable setted in > > > the testXXX > > > > method is always null. > > > > > > > > Any idea? > > > > > > > > Thanks, > > > > Henner > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail:=20 > cactus-user-unsubscribe@jakarta.apache.org > > > > For additional commands, e-mail: > cactus-user-help@jakarta.apache.org > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail:=20 > cactus-user-help@jakarta.apache.org > > > > >=20 > >=20 > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: cactus-user-help@jakarta.apache.org >=20