Return-Path: Delivered-To: apmail-incubator-beehive-user-archive@www.apache.org Received: (qmail 82896 invoked from network); 20 May 2005 14:43:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 May 2005 14:43:50 -0000 Received: (qmail 49519 invoked by uid 500); 20 May 2005 14:43:47 -0000 Delivered-To: apmail-incubator-beehive-user-archive@incubator.apache.org Received: (qmail 49464 invoked by uid 500); 20 May 2005 14:43:46 -0000 Mailing-List: contact beehive-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list beehive-user@incubator.apache.org Received: (qmail 49442 invoked by uid 99); 20 May 2005 14:43:46 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ussjmh01.bea.com (HELO ussjmh01.bea.com) (63.96.162.5) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 20 May 2005 07:43:41 -0700 Received: from ussjfe01.amer.bea.com (ussjfe01b.bea.com [172.16.120.57]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id j4KEhN4w030366 for ; Fri, 20 May 2005 07:43:23 -0700 Received: from USBOEX01.amer.bea.com ([10.36.32.15]) by ussjfe01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 20 May 2005 07:43:24 -0700 Received: from [172.24.28.183] ([172.24.28.183]) by USBOEX01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 20 May 2005 08:43:22 -0600 Message-ID: <428DF781.1060301@bea.com> Date: Fri, 20 May 2005 08:43:13 -0600 From: Richard Feit User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Beehive Users Subject: Re: unit testing my page flow/control References: <20050520135246.IYEO26223.lakermmtao02.cox.net@alpha> In-Reply-To: <20050520135246.IYEO26223.lakermmtao02.cox.net@alpha> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 May 2005 14:43:22.0485 (UTC) FILETIME=[457F2250:01C55D4A] X-PMX-Version: 4.7.0.111621, Antispam-Engine: 2.0.2.0, Antispam-Data: 2005.5.20.5 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Jarrod, That's a good point. StrutsTestCase does integrate with Cactus (the approach Carlin and I described on this thread was just the container-less "mock objects" piece). I should have also mentioned that I know of people who use HttpUnit for testing against the returned response. If you do use any of these approaches, a report to the list on how it went would be swell. :) Rich Jarrod Knox wrote: >Has anyone attempted to try testing with cactus? > >http://jakarta.apache.org/cactus/ > >Jarrod > >-----Original Message----- >From: Carlin Rogers [mailto:crogers@bea.com] >Sent: Thursday, May 19, 2005 5:32 PM >To: Beehive Users >Subject: Re: unit testing my page flow/control > >Hi James, > >You could use StrutsTestCase for JUnit. Another user posted a >message to this group about using StrutsTestCase. There was >also a recent fix to Beehive NetUI to help support this >testing. See... http://issues.apache.org/jira/browse/BEEHIVE-615. > >Rich created some tests that you might be able to look at as >examples. A base class was attached to this bug. You could >download the class, MockPageFlowTestCase.java, from the URL >above. > >The following svn information may also help. >http://svn.apache.org/viewcvs?rev=169968&view=rev > >I think one area of focus in 1.1 will be to address JUnit testing >of page flows. > >Thanks, >Carlin > >James Black wrote: > > How do I create the unit tests for my beehive project? It appears that > the pageflow and control unit tests are not automatically created. > > Thanx for all your help so far, I have made some major headway on my > project, but now I want to start looking at unit testing that part, > since I have unit tests for the database layer. > > Thanx. >