From users-return-217663-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Mon Oct 04 17:15:51 2010 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 19831 invoked from network); 4 Oct 2010 17:15:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Oct 2010 17:15:51 -0000 Received: (qmail 94377 invoked by uid 500); 4 Oct 2010 17:15:47 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 94088 invoked by uid 500); 4 Oct 2010 17:15:46 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 94071 invoked by uid 99); 4 Oct 2010 17:15:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 17:15:46 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.62.32] (HELO qmta03.westchester.pa.mail.comcast.net) (76.96.62.32) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 17:15:37 +0000 Received: from omta02.westchester.pa.mail.comcast.net ([76.96.62.19]) by qmta03.westchester.pa.mail.comcast.net with comcast id EbQq1f0060QuhwU53hFHBt; Mon, 04 Oct 2010 17:15:17 +0000 Received: from [192.168.1.202] ([69.143.109.145]) by omta02.westchester.pa.mail.comcast.net with comcast id EhFH1f00838FjT13NhFHRG; Mon, 04 Oct 2010 17:15:17 +0000 Message-ID: <4CAA0BA3.6090101@christopherschultz.net> Date: Mon, 04 Oct 2010 13:15:15 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Unit testing a CometProcessor Servlet References: <4CA60211.9000404@christopherschultz.net> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 To whom it may concern, On 10/4/2010 7:43 AM, Nabble User wrote: > Thank you for taking the time to reply Chris! No problem. I wish I knew your name, though! > Yes, I understand that I could just make direct calls to events. However, > since we are talking about long blocking requests that don't return until > some action is taken by other users (or the connection times out of course) > I was curious to see what other people do to test these situations. A unit > test that spawns multiple threads? I think multiple threads would be your only option. You could download the Tomcat source and look at the unit tests for the Comet code itself. Perhaps that would give you an idea of how to write your own tests. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyqC6MACgkQ9CaO5/Lv0PC+twCfazcf57HtLa6jAa4H/yh5niem PzEAn2mEo2jVgZjIVInm/kEuByvw19nH =Swcx -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org