Return-Path: Delivered-To: apmail-excalibur-dev-archive@www.apache.org Received: (qmail 14791 invoked from network); 15 Apr 2007 19:45:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Apr 2007 19:45:41 -0000 Received: (qmail 4293 invoked by uid 500); 15 Apr 2007 19:45:47 -0000 Delivered-To: apmail-excalibur-dev-archive@excalibur.apache.org Received: (qmail 4237 invoked by uid 500); 15 Apr 2007 19:45:47 -0000 Mailing-List: contact dev-help@excalibur.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Excalibur Developers List" Reply-To: "Excalibur Developers List" Delivered-To: mailing list dev@excalibur.apache.org Received: (qmail 4226 invoked by uid 99); 15 Apr 2007 19:45:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2007 12:45:47 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of alonso.domin@gmail.com designates 66.249.82.236 as permitted sender) Received: from [66.249.82.236] (HELO wx-out-0506.google.com) (66.249.82.236) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2007 12:45:40 -0700 Received: by wx-out-0506.google.com with SMTP id h26so1693611wxd for ; Sun, 15 Apr 2007 12:45:19 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=UgqaZ0Puyy3brAebGY32enKTvZfDt2McJ+r9x+28KNwrvAd9R5bbsN+YTcPvFOpxLrwaC6xeWjqHz8AH5iTJ/NTYw8f9F04yY0aTj2040G9R/lYx70s8+3jcy7HNRqT1U6QaNrC86Hd6keY7gz3B8MJagND5OJ90HD/FBFe+ZqI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=PIij5z5zry9W8AdavLgeEFmLpsXJUalxrMtpTA2iV67YOfaiPfPbDx3kSU5rBmt3TwfKiJJ/NlUMotkwwfghwHuG+8OuQSxEb7LJTlla03Cz7y4FS1XvW9dBbT00OhzWGJiKu5kwtXN43MVdyl/fPs1nqPjJJhOImckkBGUOcLI= Received: by 10.114.198.1 with SMTP id v1mr1689374waf.1176666318660; Sun, 15 Apr 2007 12:45:18 -0700 (PDT) Received: by 10.114.145.15 with HTTP; Sun, 15 Apr 2007 12:45:18 -0700 (PDT) Message-ID: <58fcf4500704151245p7142cf74w532f22aee1b6422b@mail.gmail.com> Date: Sun, 15 Apr 2007 21:45:18 +0200 From: "A. Alonso Dominguez" To: dev@excalibur.apache.org Subject: FortressTestCase: Context initialization bug MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_29052_11679099.1176666318285" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_29052_11679099.1176666318285 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline HI there, I'm developing a server application using fortress as the container. I found a bug in your FortressTestCase when I tried to run my testcase's. I have a test case base which extends the one provided with the excalibur distribution. This testcase base overrides the method initializeContext and strores there some values. The problem is, the FortressTestCase ignores the context returned from that method at line 145. This is a piece of code: Context context = initializeContext( config.getContext() ); m_containerManager = new DefaultContainerManager( config.getContext() ); ContainerUtil.initialize( m_containerManager ); So, the context returned from initializeContext is never used. This should be changed to Context context = initializeContext( config.getContext() ); m_containerManager = new DefaultContainerManager( context ); ContainerUtil.initialize( m_containerManager ); If you want, I can open an issue about this. Regards, Alonso ------=_Part_29052_11679099.1176666318285 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline HI there,

I'm developing a server application using fortress as the container. I found a bug in your FortressTestCase when I tried to run my testcase's.
I have a test case base which extends the one provided with the excalibur distribution. This testcase base overrides the method initializeContext and strores there some values.

The problem is, the FortressTestCase ignores the context returned from that method at line 145. This is a piece of code:

Context context = initializeContext( config.getContext() );
       
m_containerManager = new DefaultContainerManager( config.getContext() );
ContainerUtil.initialize( m_containerManager );

So, the context returned from initializeContext is never used. This should be changed to

Context context = initializeContext( config.getContext() );
       
m_containerManager = new DefaultContainerManager( context );
ContainerUtil.initialize( m_containerManager );

If you want, I can open an issue about this.

Regards,
Alonso
------=_Part_29052_11679099.1176666318285--