Return-Path: X-Original-To: apmail-incubator-isis-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-isis-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D906346C6 for ; Sun, 3 Jul 2011 16:34:08 +0000 (UTC) Received: (qmail 71196 invoked by uid 500); 3 Jul 2011 16:34:08 -0000 Delivered-To: apmail-incubator-isis-dev-archive@incubator.apache.org Received: (qmail 71180 invoked by uid 500); 3 Jul 2011 16:34:08 -0000 Mailing-List: contact isis-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: isis-dev@incubator.apache.org Delivered-To: mailing list isis-dev@incubator.apache.org Received: (qmail 71172 invoked by uid 99); 3 Jul 2011 16:34:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jul 2011 16:34:08 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dkhaywood@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-wy0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jul 2011 16:34:02 +0000 Received: by wyg30 with SMTP id 30so3406558wyg.6 for ; Sun, 03 Jul 2011 09:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:organization:user-agent:mime-version :to:subject:references:in-reply-to:content-type; bh=E3AFykPL1YIK9woJvZMl9w9qyFAOX4la+JXxTovpzMw=; b=DW1g89KSh/LXAnSrkeWOEk5Up1Hppsqf9J9DLhJHo259Gg8Ye4n7W+lMMyBmWyuoSt LWlTNmzb4lsK/vSOI5wy5nZnw1xuZFp8SczzcNmZ+4873DBhOsBpZ/qjWSf7wpii3nx/ 6lERak1Hykpoiba+UY4MwYFbjQMgFO8V5GrEU= Received: by 10.216.144.100 with SMTP id m78mr4503333wej.55.1309710820107; Sun, 03 Jul 2011 09:33:40 -0700 (PDT) Received: from [192.168.178.66] (host217-42-47-64.range217-42.btcentralplus.com [217.42.47.64]) by mx.google.com with ESMTPS id l5sm2589589weq.33.2011.07.03.09.33.38 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jul 2011 09:33:39 -0700 (PDT) Message-ID: <4E1099E1.1090700@gmail.com> Date: Sun, 03 Jul 2011 17:33:37 +0100 From: Dan Haywood Reply-To: dan@haywood-associates.co.uk Organization: Haywood Associates Ltd. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: isis-dev@incubator.apache.org Subject: Re: junit viewer success story References: <1309509085.87514.YahooMailClassic@web27802.mail.ukl.yahoo.com> In-Reply-To: <1309509085.87514.YahooMailClassic@web27802.mail.ukl.yahoo.com> Content-Type: multipart/mixed; boundary="------------000805050708020308070706" --------------000805050708020308070706 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mark, Mohammad, good idea... I'll request an account and start posting there once I get our release out (currently building a new RC for voting on). Cheers Dan On 01/07/2011 09:31, Mark Struberg wrote: > +1 > > We also have project specific blogs on > > http://blogs.apache.org/ > > I will ask on general if this is also available for incubator projects. > > LieGrue, > strub > > --- On Thu, 6/30/11, Mohammad Nour El-Din wrote: > >> From: Mohammad Nour El-Din >> Subject: Re: junit viewer success story >> To: isis-dev@incubator.apache.org >> Date: Thursday, June 30, 2011, 8:09 PM >> Perfect why not to write a blog or an >> article about it and we publish >> it on our site ? >> >> On Thu, Jun 30, 2011 at 9:31 PM, Kevin Meyer - KMZ >> wrote: >>> Hi All, (Dan!) >>> >>> I just wanted to write a short note to say that I have >> been using the Isis >>> junit viewer to write application tests for an >> application that I have been >>> contracted to write.. and I think it works quite >> well! >>> Once I realised I had to (and remembered to) wrap the >> appropriate >>> domain classes (and services), the junit viewer has >> helped me confirm >>> such application domain issues as user rights (only >> certain users can >>> see certain properties, access certain methods, etc), >> and general >>> application usage (if I can't write a straight-forward >> "test" to achieve the >>> required functionality - it's too complicated). >>> >>> Combined with ecl-emma, I have reasonable confidence >> that both the >>> application and the domain classes are reasonably >> exercised! >>> At some point, though, it seems that I need to look >> into ensuring that >>> life-cycle methods are also included - it seems that >> "validate" is not >>> being called before persistance - but this is not a >> blocker if you're >>> aware of it. >>> >>> Anyway - it works, and I'm finding it very useful. >>> >>> A simple test looks like: >>> >>> public void memberCanNotChangeOwnInitials() >> throws Exception { >>> doLogin("voter@saip"); >>> >>> try { >>> >> wrappedLoggedInMember.setInitials("X"); >>> fail("Should have been disabled"); >>> } catch (DisabledException e) { >>> // this is good! >>> } >>> } >>> >>> Perhaps someone else'll comment on style, but I think >> these tests are >>> quite clear. >>> >>> Regards, >>> Kevin >>> >>> PS: I have also written an authenticator to use a SQL >> database. I will >>> update the authentication, etc, documentation with >> HOWTOs shortly. >>> >>> >> >> >> -- >> Thanks >> - Mohammad Nour >> Author of (WebSphere Application Server Community >> Edition 2.0 User Guide) >> http://www.redbooks.ibm.com/abstracts/sg247585.html >> - LinkedIn: http://www.linkedin.com/in/mnour >> - Blog: http://tadabborat.blogspot.com >> ---- >> "Life is like riding a bicycle. To keep your balance you >> must keep moving" >> - Albert Einstein >> >> "Writing clean code is what you must do in order to call >> yourself a >> professional. There is no reasonable excuse for doing >> anything less >> than your best." >> - Clean Code: A Handbook of Agile Software Craftsmanship >> >> "Stay hungry, stay foolish." >> - Steve Jobs >> --------------000805050708020308070706--