Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 68786 invoked from network); 16 Mar 2007 14:02:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2007 14:02:22 -0000 Received: (qmail 70960 invoked by uid 500); 16 Mar 2007 14:02:29 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 70931 invoked by uid 500); 16 Mar 2007 14:02:29 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 70918 invoked by uid 99); 16 Mar 2007 14:02:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2007 07:02:29 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of eoghan.glynn@iona.com designates 62.221.12.33 as permitted sender) Received: from [62.221.12.33] (HELO emea-smg1.iona.com) (62.221.12.33) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2007 07:02:18 -0700 Received: from emea-ems1.ionaglobal.com (dutec.ie [10.2.1.125]) by emea-smg1.iona.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id l2GEwsBH002217 for ; Fri, 16 Mar 2007 14:58:54 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Small problem with testutil-common post move to Junit4 Date: Fri, 16 Mar 2007 14:01:54 -0000 Message-ID: In-Reply-To: <1D195F515BDFE04EA40FA8D046308D6A03027C@emea-ems1.IONAGLOBAL.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Small problem with testutil-common post move to Junit4 Thread-Index: Acdnx8kesr8MAENpSMGOH8ZkbefSmQAC/JHw From: "Glynn, Eoghan" To: X-Virus-Checked: Checked by ClamAV on apache.org Thanks Gary, I've just committed this ... /Eoghan=20 > -----Original Message----- > From: Tully, Gary [mailto:Gary.Tully@iona.com]=20 > Sent: 16 March 2007 12:36 > To: cxf-dev@incubator.apache.org > Subject: Small problem with testutil-common post move to Junit4 >=20 >=20 > Hi, > I have found a small problem with the default initialization=20 > of the member variable 'bus', in=20 > AbstractBusClientServerTestBase. The result is that an @After=20 > annotated method shuts down 'bus' if it is not null. This=20 > means that if a @BeforeClass initialises the staticBus, after=20 > the first test run, it will be shutdown leaving nothing for=20 > the @AfterClass method and ensuring that a new default bus is=20 > created by the runtime for subsequent tests, which is=20 > contrary to the use of a static bus. The staticBus can be=20 > resolved via BusFactory because it is set as the defaultBus,=20 > so there does not seem to be a need for the default=20 > initialisation of 'bus'. >=20 > The fix below sorts out the problem. All tests pass with this change. >=20 > Can someone commit the for me? >=20 > Thanks, > Gary. >=20 >=20 > svn diff > testutils\src\main\java\org\apache\cxf\testutil\common\Abstrac > tBusClient > ServerTestBase.java > Index: > testutils/src/main/java/org/apache/cxf/testutil/common/Abstrac > tBusClient > ServerTestBase.java > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- > testutils/src/main/java/org/apache/cxf/testutil/common/Abstrac > tBusClient > ServerTestBase.java (revision 518934) > +++ > testutils/src/main/java/org/apache/cxf/testutil/common/Abstrac > tBusClient > ServerTestBase.java (working copy) > @@ -44,7 +44,7 @@ > protected static Bus staticBus; >=20 > protected String configFileName =3D defaultConfigFileName; > - protected Bus bus =3D staticBus; > + protected Bus bus; >=20 > public void createBus(String config) throws Exception { > configFileName =3D config; >=20