commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons-sandbox/pattern/src/test/org/apache/commons/pattern/factory TestFactoryUtils.java
Date Sat, 29 Jun 2002 12:49:26 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message