Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 50187 invoked from network); 16 Jan 2006 20:58:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jan 2006 20:58:47 -0000 Received: (qmail 82580 invoked by uid 500); 16 Jan 2006 20:58:42 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 82520 invoked by uid 500); 16 Jan 2006 20:58:42 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 82508 invoked by uid 99); 16 Jan 2006 20:58:42 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 12:58:41 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 46516E0 for ; Mon, 16 Jan 2006 21:58:20 +0100 (CET) Message-ID: <2081347645.1137445100284.JavaMail.jira@ajax.apache.org> Date: Mon, 16 Jan 2006 21:58:20 +0100 (CET) From: "George Harley (JIRA)" To: harmony-dev@incubator.apache.org Subject: [jira] Created: (HARMONY-31) Move peformance timing of unit tests into a decorator class. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Move peformance timing of unit tests into a decorator class. ------------------------------------------------------------ Key: HARMONY-31 URL: http://issues.apache.org/jira/browse/HARMONY-31 Project: Harmony Type: Improvement Reporter: George Harley Assigned to: Geir Magnusson Jr Priority: Minor There has been some low-level discussion on the dev mailing list recently about the inclusion of performance-related logging code near the top of a unit test class inheritance hierarchy (see com.openintel.drl.security.test.PerformanceTest in the HARMONY-16 contribution). This particular issue suggests an alternative way of adding in timing code but without making it the responsibility of the unit tests themselves and without the need to introduce a class in the inheritance hierarchy. The basic approach is to exploit the junit.extensions.TestDecorator type in the JUnit API to add in timing behaviour before and after each test method runs. This will be demonstrated with some simple sample code. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira