You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2002/06/29 14:49:26 UTC
cvs commit: jakarta-commons-sandbox/pattern/src/test/org/apache/commons/pattern/factory TestFactoryUtils.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>