Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 86817 invoked from network); 15 Jan 2006 00:12:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jan 2006 00:12:40 -0000 Received: (qmail 20261 invoked by uid 500); 15 Jan 2006 00:12:38 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 20241 invoked by uid 500); 15 Jan 2006 00:12:38 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 20218 invoked by uid 99); 15 Jan 2006 00:12:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jan 2006 16:12:37 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gthought@gmail.com designates 64.233.184.194 as permitted sender) Received: from [64.233.184.194] (HELO wproxy.gmail.com) (64.233.184.194) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jan 2006 16:12:37 -0800 Received: by wproxy.gmail.com with SMTP id 36so950169wra for ; Sat, 14 Jan 2006 16:12:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=geGxN6D9MyZ1ISR2P7BSMHlYxod4MBYwAiW2HxL4jkYwEdTXpCUUZ9yaeXMWPV/Ae7f3dzXlTn/PIc0SZXbEhwFqZOmRVpiA3/PaicXcNF/zCYlD2yWEi4vJXAeQsT94ImStXEGVQ88jQFdTpO6EvUw8SgbK/YcspajOmuqbcZw= Received: by 10.54.130.15 with SMTP id c15mr5282954wrd; Sat, 14 Jan 2006 16:12:16 -0800 (PST) Received: by 10.54.79.20 with HTTP; Sat, 14 Jan 2006 16:12:16 -0800 (PST) Message-ID: Date: Sat, 14 Jan 2006 18:12:16 -0600 From: Gregg D Bolinger To: user-java@ibatis.apache.org Subject: Re: Build Time Checks In-Reply-To: <16178eb10601141554g4c01aba4xe739f65dbdbf38e3@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_43119_12364956.1137283936451" References: <65c8da90601140143p7ad600dcjceee06148c532f0@mail.gmail.com> <16178eb10601140525r6147e07dx81d6e021870cd971@mail.gmail.com> <16178eb10601141554g4c01aba4xe739f65dbdbf38e3@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_43119_12364956.1137283936451 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks Clinton. I suppose I could do something similar with Derby. I gues= s my question was a more general "Is it ok to do unit tests that actually uni= t tests?" Or rather, is it common practice? Gregg On 1/14/06, Clinton Begin wrote: > > > I use HSQLDB for my ibatis unit tests. It's totally effective for most > well written SQL. Only SQL that uses custom functions or stored procs wi= ll > require your real database. In such cases, we (where I work) give each > developer their own account on the database server, or a copy of the > database on their local machine (depending on the practicality of the > database). > > Cheers, > Clinton > > > > On 1/14/06, Gregg D Bolinger wrote: > > > > I do unit tests. I've heard good and bad about performing unit tests > > that actually hit the database. Typical scenerio is to use Mock Object= s so > > you don't have too. Anyone care to elaborate on unit testing that actu= ally > > hits the database? > > > > Gregg > > > > On 1/14/06, Clinton Begin wrote: > > > > > > > > > +1 > > > > > > > > > On 1/14/06, Hycel Taylor wrote: > > > > > > > > Unit Tests. > > > > > > > > On 1/13/06, Gregg D Bolinger < gthought@gmail.com> wrote: > > > > > I am looking for a way that I can validate my mapping files > > > > against my > > > > > associated object files and even possibly the > > > > database. Basically, I want > > > > > to ensure that when the project it built, I run into as few > > > > runtime issues > > > > > as possible. As it is, if someone changes the database or someon= e > > > > changed > > > > > an Object file or someone changed a mapping file, I won't really > > > > know about > > > > > it until the app is deployed and running. > > > > > > > > > > I'd like to hear some stories and information on how anyone else > > > > delt with > > > > > this problem, if at all. > > > > > > > > > > Thanks. > > > > > > > > > > Gregg > > > > > > > > > > > > > > > > > > > > > > > ------=_Part_43119_12364956.1137283936451 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Thanks Clinton.  I suppose I could do something similar with Derb= y.  I guess my question was a more general "Is it ok to do unit t= ests that actually unit tests?"  Or rather, is it common practice= ?
 
Gregg

 
On 1/14/06, = Clinton Begin <clinton.be= gin@gmail.com> wrote:

I use HSQLDB for my ibatis u= nit tests.  It's totally effective for most well written SQL.  On= ly SQL that uses custom functions or stored procs will require your real da= tabase.  In such cases, we (where I work) give each developer their ow= n account on the database server, or a copy of the database on their local = machine (depending on the practicality of the database).=20

Cheers,
Clinton=20




On 1/14/06, = Gregg D Bolinger <gthought@gma= il.com > wrote:=20
I do unit tests.  I've heard good and bad about performing unit t= ests that actually hit the database.  Typical scenerio is to use Mock = Objects so you don't have too.  Anyone care to elaborate on unit testi= ng that actually hits the database?=20
 
Gregg
 
On 1/14/06, = Clinton Begin <clinton.be= gin@gmail.com=20 > wrote:=20

+1=20



On 1/14/06, = Hycel Taylor <hycel1@gmail.com> wrote:=20
Unit Tests.

O= n 1/13/06, Gregg D Bolinger <
gthought@gmail.com> wrote:
> I am looking for a way that I ca= n validate my mapping files against my
> associated object files and = even possibly the database.  Basically, I want
> to ensure= that when the project it built, I run into as few runtime issues=20
> as possible.  As it is, if someone changes the database = or someone changed
> an Object file or someone changed a mapping file= , I won't really know about
> it until the app is deployed and runni= ng.
>
> I'd like to hear some stories and information on how anyone el= se delt with
> this problem, if at all.
>
> Thanks.
&g= t;
> Gregg
>
>




------=_Part_43119_12364956.1137283936451--