Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-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 75B7317715 for ; Sat, 11 Apr 2015 07:04:37 +0000 (UTC) Received: (qmail 93049 invoked by uid 500); 11 Apr 2015 07:04:37 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 92904 invoked by uid 500); 11 Apr 2015 07:04:37 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 92464 invoked by uid 99); 11 Apr 2015 07:02:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Apr 2015 07:02:50 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [74.125.82.44] (HELO mail-wg0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Apr 2015 07:02:23 +0000 Received: by wgyo15 with SMTP id o15so36117067wgy.2 for ; Sat, 11 Apr 2015 00:02:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=E7BOPHh1dOhGbSszWgkTA2OrG+cjcBbumut4nF2TyO0=; b=L3zik+z9uPH6LwSmZHolbnKNGzCX3ycFbJgPnJPKwFnyXQpkmcZ/AWj62WivqmpXyV dpaRDVAzrYqi/txgNR3EIScguYvKqGIczwUDkqgaAH86KVRb/ClkXXakM8A/hHxBezH/ Wt2kyf9VBcrB5BffntI/QOyE4HVzbHhtdk+hJk3WV3qI7CkYyU8NQjDWws6eAvHBVNq4 dB1/sH7s4FOBbZrQO32DBw8ul2ON3NmDspPRHg3VM9hjyj0LsVc+cEQbEHJ9Yhh2+LHd pzpet0ZXqLwQ7ZylqA81bICGbgz3DzKJLvX+a/RKhaf2hlAJsg+oiEWz3UsF0gwat8j+ EMoQ== X-Gm-Message-State: ALoCoQkLm2jPLB6ytDjgnF9sLubiHi3I0clqsh580JtDXgjRm3INHf74l9SDoOe+3C0DuFFUoTEG MIME-Version: 1.0 X-Received: by 10.180.188.193 with SMTP id gc1mr3917848wic.7.1428735721806; Sat, 11 Apr 2015 00:02:01 -0700 (PDT) Received: by 10.181.28.169 with HTTP; Sat, 11 Apr 2015 00:02:01 -0700 (PDT) X-Originating-IP: [2.125.201.5] Date: Sat, 11 Apr 2015 08:02:01 +0100 Message-ID: Subject: [lang] testTimeZoneStrategyPattern() runs twice for no apparent gain From: Duncan Jones To: Commons Developers List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi everyone, Lang takes a few minutes to build on my system, so I was examining execution times of tests to see if anything can be improved. I noticed that FastDateParserTest.testTimeZoneStrategyPattern() takes quite a long time to execute (over 40 seconds for me). Then I noticed this is executed twice, once for FastDateParserTest and once for the subclass FastDateFormat_ParserTest. Yet the method doesn't appear to use the result of getInstance(). As a result, we don't want this being executed by subclasses as it gains us nothing. Before I refactor this test, possibly into a separate TimeZoneStrategyTest class, can anyone suggest a reason not to? Or a better solution / location for the test? Duncan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org