Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 50841 invoked from network); 6 Jul 2007 18:23:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 18:23:48 -0000 Received: (qmail 5332 invoked by uid 500); 6 Jul 2007 18:23:47 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 5317 invoked by uid 500); 6 Jul 2007 18:23:47 -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 5305 invoked by uid 99); 6 Jul 2007 18:23:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 11:23:47 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [195.4.92.92] (HELO mout2.freenet.de) (195.4.92.92) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 11:23:41 -0700 Received: from [195.4.92.18] (helo=mx8.freenet.de) by mout2.freenet.de with esmtpa (Exim 4.68) (envelope-from ) id 1I6sSd-0007cq-TG for user-java@ibatis.apache.org; Fri, 06 Jul 2007 20:23:19 +0200 Received: from dslb-084-056-017-162.pools.arcor-ip.net ([84.56.17.162]:1597 helo=alpha) by mx8.freenet.de with esmtpsa (ID tdev@freenet.de) (TLSv1:RC4-MD5:128) (port 25) (Exim 4.68 #1) id 1I6sSd-00069f-NY for user-java@ibatis.apache.org; Fri, 06 Jul 2007 20:23:19 +0200 Message-ID: <007801c7bffa$ba1906c0$0201a8c0@alpha> From: "tdev" To: References: <001a01c7bff2$df93ba60$0201a8c0@alpha> Subject: Re: StubObjects / ValidationObjects generation feature planned ? Date: Fri, 6 Jul 2007 20:23:18 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0075_01C7C00B.7D4BEE90" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------=_NextPart_000_0075_01C7C00B.7D4BEE90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, thanks, =20 could you please give maybe a hint where to plug in ?=20 And I agree thats very subjective. I think about DBUnit because it = seems I can write Unit-Tests faster,=20 although DBUnit seems xml-overwhelming and with not an easy setup ? General asked: What is a good way/tool/framwork to write unit-tests for = classes using the generated iBatis-DAOs ? ----- Original Message -----=20 From: Jeff Butler=20 To: user-java@ibatis.apache.org=20 Sent: Friday, July 06, 2007 7:35 PM Subject: Re: StubObjects / ValidationObjects generation feature = planned ? I think that generating test stubs is very subjective - so I'm = hesitant to add it to the base of Abator. But Abator is very extensible = - you could plug something in that would do what you want. Also - most IDE's will very quickly generate a stub from an interface = - you could use that feature as a starting point and then fill out the = specifics as you needed. I am interested in your Spring validator idea. Jeff Butler =20 On 7/6/07, tdev wrote:=20 the ***DAOStub generation should certainly be made better, e.g.: - instead of the returning 0's defaulting to 1's - a setTestData method to set members, and returning them inside the = methods ------=_NextPart_000_0075_01C7C00B.7D4BEE90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello, thanks, 
could you please give maybe a hint = where to=20 plug in ?
And I agree thats very = subjective.  I think=20 about DBUnit because it seems I can write Unit-Tests faster, =
although DBUnit seems = xml-overwhelming and=20 with not an easy setup ?
 
General asked: What is a good = way/tool/framwork=20 to write unit-tests for classes using the generated = iBatis-DAOs=20 ?
 
 
----- Original Message -----
From:=20 Jeff=20 Butler
Sent: Friday, July 06, 2007 = 7:35 PM
Subject: Re: StubObjects /=20 ValidationObjects generation feature planned ?

I think that generating test stubs is very subjective - so I'm = hesitant=20 to add it to the base of Abator.  But Abator is very extensible - = you=20 could plug something in that would do what you want.
 
Also - most IDE's will very quickly generate a stub from an = interface -=20 you could use that feature as a starting point and then fill out the = specifics=20 as you needed.
 
I am interested in your Spring validator idea.
 
Jeff Butler

 
On 7/6/07, tdev=20 <tdev@freenet.de> = wrote:=20
the ***DAOStub generation should certainly be made = better,=20 e.g.:
- instead of the returning 0's defaulting to 1's
- a setTestData method to set members, and returning them = inside=20 the methods
=
 

= ------=_NextPart_000_0075_01C7C00B.7D4BEE90--