Return-Path: X-Original-To: apmail-cayenne-dev-archive@www.apache.org Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AFA0510DDD for ; Sat, 29 Mar 2014 15:47:15 +0000 (UTC) Received: (qmail 21842 invoked by uid 500); 29 Mar 2014 15:47:15 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 21804 invoked by uid 500); 29 Mar 2014 15:47:12 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 21796 invoked by uid 99); 29 Mar 2014 15:47:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2014 15:47:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 29 Mar 2014 15:47:04 +0000 Received: (qmail 2416 invoked from network); 29 Mar 2014 15:59:25 -0000 Received: from unknown (HELO ?192.168.1.27?) (212.98.191.4) by vorsha.objectstyle.org with SMTP; 29 Mar 2014 15:59:25 -0000 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Upgraded to JUnit 4 From: Andrus Adamchik In-Reply-To: Date: Sat, 29 Mar 2014 18:46:40 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <8D91B136-47FE-4713-92E1-C9C9A36EF14A@objectstyle.org> References: To: dev@cayenne.apache.org X-Mailer: Apple Mail (2.1874) X-Virus-Checked: Checked by ClamAV on apache.org We are using Mockito in Cayenne. As for TestNG, I recall we did a research some time ago and found a few = things that we might take advantage of in Cayenne. Just don=92t remember = what those are :) Andrus On Mar 29, 2014, at 4:00 PM, Mike Kienenberger = wrote: > For what it's worth, I upgraded my cayenne project from junit 3.8.1 to > junit4 a couple of weeks ago. >=20 > After a couple of days, I decided that upgrading to TestNG made more > sense, as it supports everything that junit4 did plus a lot more. The > latest versions of TestNG will also run junit tests -- all 1500 of my > tests are running under it. >=20 > A couple of other testing libraries that I have found to be extremely > helpful are Mockito and fest. Mockito has greatly reduced the amount > of work I needed to write tests, and fest has made the assertions > human-readable. No more wondering whether I switched expected with > actual. >=20 >=20 >=20 > On Sat, Mar 29, 2014 at 7:30 AM, Andrus Adamchik = wrote: >> Just committed JUnit upgrade to version 4.11 from the ancient 3.8.1. >>=20 >> Was pleasantly surprised that it is fully backwards compatible, so we = don't need to rewrite all our existing tests to use annotations. I had = to do some non-test file renaming though, so that surefire-plugin does = not attempt to run them as tests. >>=20 >> So for now it is business as usual, but we have the ability to use = all the new features in JUnit 4, and eventually clean up our cross-DB = test hacks. >>=20 >> Andrus >=20