Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 99823 invoked from network); 29 Jun 2002 12:49:31 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by 209.66.108.5 with SMTP; 29 Jun 2002 12:49:31 -0000 Received: (qmail 19638 invoked by uid 97); 29 Jun 2002 12:49:39 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 19587 invoked by uid 97); 29 Jun 2002 12:49:38 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 19576 invoked by uid 97); 29 Jun 2002 12:49:38 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: 29 Jun 2002 12:49:26 -0000 Message-ID: <20020629124926.92748.qmail@icarus.apache.org> From: scolebourne@apache.org To: jakarta-commons-sandbox-cvs@apache.org Subject: cvs commit: jakarta-commons-sandbox/pattern/src/test/org/apache/commons/pattern/factory TestFactoryUtils.java X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N scolebourne 2002/06/29 05:49:26 Modified: pattern/src/test/org/apache/commons/pattern/factory TestFactoryUtils.java Log: Fix to ensure test works in other timezones Revision Changes Path 1.3 +3 -1 jakarta-commons-sandbox/pattern/src/test/org/apache/commons/pattern/factory/TestFactoryUtils.java Index: TestFactoryUtils.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/pattern/src/test/org/apache/commons/pattern/factory/TestFactoryUtils.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- TestFactoryUtils.java 27 Jun 2002 21:57:34 -0000 1.2 +++ TestFactoryUtils.java 29 Jun 2002 12:49:26 -0000 1.3 @@ -55,6 +55,7 @@ import java.io.Serializable; import java.util.Date; +import java.util.TimeZone; import junit.framework.Test; import junit.framework.TestSuite; @@ -262,6 +263,7 @@ } public void testReflectionFactoryComplex() { + TimeZone.setDefault(TimeZone.getTimeZone("GMT")); Factory factory = FactoryUtils.reflectionFactory(Date.class, new Class[] {Integer.TYPE, Integer.TYPE, Integer.TYPE}, new Object[] {new Integer(70), new Integer(0), new Integer(2)}); -- To unsubscribe, e-mail: For additional commands, e-mail: