Return-Path: X-Original-To: apmail-sis-commits-archive@www.apache.org Delivered-To: apmail-sis-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62AD31887D for ; Fri, 9 Oct 2015 20:32:28 +0000 (UTC) Received: (qmail 89966 invoked by uid 500); 9 Oct 2015 20:32:15 -0000 Delivered-To: apmail-sis-commits-archive@sis.apache.org Received: (qmail 89937 invoked by uid 500); 9 Oct 2015 20:32:15 -0000 Mailing-List: contact commits-help@sis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sis-dev@sis.apache.org Delivered-To: mailing list commits@sis.apache.org Received: (qmail 89928 invoked by uid 99); 9 Oct 2015 20:32:15 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2015 20:32:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2BB9DC18CC for ; Fri, 9 Oct 2015 20:32:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.99 X-Spam-Level: X-Spam-Status: No, score=0.99 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5ucZyL1x2ket for ; Fri, 9 Oct 2015 20:32:14 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id E5325206E8 for ; Fri, 9 Oct 2015 20:32:13 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0E42CE010F for ; Fri, 9 Oct 2015 20:32:12 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 71C9B3A02E5 for ; Fri, 9 Oct 2015 20:32:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1707810 - /sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/TransverseMercatorTest.java Date: Fri, 09 Oct 2015 20:32:12 -0000 To: commits@sis.apache.org From: desruisseaux@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151009203212.71C9B3A02E5@svn01-us-west.apache.org> Author: desruisseaux Date: Fri Oct 9 20:32:11 2015 New Revision: 1707810 URL: http://svn.apache.org/viewvc?rev=1707810&view=rev Log: Avoid a random test failure. Modified: sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/TransverseMercatorTest.java Modified: sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/TransverseMercatorTest.java URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/TransverseMercatorTest.java?rev=1707810&r1=1707809&r2=1707810&view=diff ============================================================================== --- sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/TransverseMercatorTest.java [UTF-8] (original) +++ sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/TransverseMercatorTest.java [UTF-8] Fri Oct 9 20:32:11 2015 @@ -16,6 +16,7 @@ */ package org.apache.sis.referencing.operation.projection; +import java.util.Random; import org.opengis.util.FactoryException; import org.opengis.referencing.operation.TransformException; import org.apache.sis.internal.referencing.Formulas; @@ -24,7 +25,6 @@ import org.apache.sis.parameter.Paramete import org.apache.sis.referencing.operation.transform.CoordinateDomain; import org.apache.sis.test.DependsOnMethod; import org.apache.sis.test.DependsOn; -import org.apache.sis.test.TestUtilities; import org.junit.Test; import static java.lang.StrictMath.toRadians; @@ -152,7 +152,11 @@ public final strictfp class TransverseMe @DependsOnMethod("testTransverseMercator") public void testSerialization() throws FactoryException, TransformException { createNormalizedProjection(true, 40); - final double[] source = CoordinateDomain.GEOGRAPHIC_RADIANS_HALF_λ.generateRandomInput(TestUtilities.createRandomNumberGenerator(), 2, 10); + /* + * Use a fixed seed for the random number generator in this test, because in case of failure this class will not + * report which seed it used. This limitation exists because this test class does not extend the SIS TestCase. + */ + final double[] source = CoordinateDomain.GEOGRAPHIC_RADIANS_HALF_λ.generateRandomInput(new Random(5346144739450824145L), 2, 10); final double[] target = new double[source.length]; transform.transform(source, 0, target, 0, 10); transform = assertSerializedEquals(transform);