Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 55934 invoked from network); 31 Aug 2007 11:54:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Aug 2007 11:54:27 -0000 Received: (qmail 80593 invoked by uid 500); 31 Aug 2007 11:54:22 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 80578 invoked by uid 500); 31 Aug 2007 11:54:22 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 80569 invoked by uid 99); 31 Aug 2007 11:54:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2007 04:54:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [67.18.27.130] (HELO gator74.hostgator.com) (67.18.27.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2007 11:55:20 +0000 Received: from ool-44c6cd10.dyn.optonline.net ([68.198.205.16]:1913 helo=[192.168.1.102]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IR54U-0007wI-I3 for uima-user@incubator.apache.org; Fri, 31 Aug 2007 06:53:54 -0500 Message-ID: <46D8013E.1000806@schor.com> Date: Fri, 31 Aug 2007 07:53:34 -0400 From: Marshall Schor User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: Re: How to test a CollectionReader References: <63e2e4460708290750x51c10630m6a3703ff137643c9@mail.gmail.com> <46D627D9.50302@schor.com> <63e2e4460708300241k18a34952y1c7f776d09f1ecd4@mail.gmail.com> <46D7195D.8070206@schor.com> <63e2e4460708310028v27ee65e3id1edc47c5064ee19@mail.gmail.com> In-Reply-To: <63e2e4460708310028v27ee65e3id1edc47c5064ee19@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator74.hostgator.com X-AntiAbuse: Original Domain - incubator.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-Virus-Checked: Checked by ClamAV on apache.org Roberto Franchini wrote: > On 8/30/07, Marshall Schor wrote: > >> Hi Roberto - >> >> After some tracing and tracking down, it seems the method you were using >> to create your CAS pool >> needs an additional statement. Here's the original, which unfortunately >> doesn't set up the type system >> from the Collection Reader into the CASes (normally this isn't a >> problem, because this happens elsewhere >> in the setup to use a collection reader within a CPE): >> > [cut] > > Thanks a lot, now it works! > I was on the right path, but I didn't find a way to set the type system. > Maybe it could be usefull for others to include the test in further > uima releases. I know, testing a FS collection reader seems silly, but > we are going to implement collection readers for other sources, such > as net and databases.I think good tests will help us write better > code. > I completely agree with you on the value of good tests - thanks for the motivation! -Marshall > Regards, > Roberto > >