Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 22119 invoked from network); 29 Nov 2007 14:57:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2007 14:57:40 -0000 Received: (qmail 78848 invoked by uid 500); 29 Nov 2007 14:57:28 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 78461 invoked by uid 500); 29 Nov 2007 14:57:27 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 78452 invoked by uid 99); 29 Nov 2007 14:57:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 06:57:27 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 14:57:07 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IxkpB-0000Pr-Th for users@jackrabbit.apache.org; Thu, 29 Nov 2007 06:57:09 -0800 Message-ID: <14027429.post@talk.nabble.com> Date: Thu, 29 Nov 2007 06:57:09 -0800 (PST) From: =?UTF-8?Q?J=C3=B8rgen_Sivesind?= To: users@jackrabbit.apache.org Subject: Re: Junit and jackrabbit In-Reply-To: <14025503.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: jsi@enonic.com References: <09584178D434304885A073316C800D0C0528354B@CPEXBE-EML13.kpnsp.local> <474EA969.2000603@gmail.com> <14025503.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Having looked at JackRabbit for 2 days, but knowing both JUnit and other te= st tools fairly well, I would say that unless somebody have made a JackRabbit specific test tool, JUnit is probably your best choice for testing behaviour, but not for performance. JUnit is designed to be a tool to test behaviour. For performance, you might want to check out JMeter. Sincerely, J=C3=B8rgen Sivesind malsi wrote: >=20 > I would like to test my code using JUnit in order to see if my code is > doing well in terms of performance and behavior (see if nodes are realy > deleted or not, really read or not, if the right node is read, etc..) > My questions are the following: >=20 > Is JUnit the best way to test my code? > Is there any documentation anywhere for using JUnit for testing an > implementation that uses Jackrabbit ? >=20 >=20 > Fabi=C3=A1n Mandelbaum wrote: >>=20 >> Hello, I'm using nothing more than JUnit4, and JackRabbit to do unit >> tests. In the "setup" methods (before, after, beforeClass, afterClass) I >> do the repo >> setup/cleanup/write_status_to_visually_check_if_everything_is fine >> thing, and then just make test methods for each of my classes' public >> methods. >>=20 >> nicklist@planet.nl escribi=C3=B3: >>> I guess you could take the JCR API and maybe the JackRabbit API in >>> combination with JMock to unit test your code. >>> >>> Hth, >>> >>> Nick Stolwijk >>> >>> >>> -----Original Message----- >>> From: malsi [mailto:islam.el-sayed@epfl.ch] >>> Sent: Thu 11/29/2007 9:47 AM >>> To: users@jackrabbit.apache.org >>> Subject: Junit and jackrabbit >>> =20 >>> >>> >>> >>> Hi, >>> >>> I am implementing classes that access and store nodes in a repository. = I >>> would like to test my code using JUnit () >>> =20 >>=20 >>=20 >>=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/RE%3A-Junit-and-jackrab= bit-tf4895862.html#a14027429 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.