You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/jfreechart/files/jfreechart-1.0.19-fix-TimeS...

25 lines
1.1 KiB

--- a/tests/org/jfree/data/time/TimeSeriesCollectionTest.java 2011-11-20 22:40:13.000000000 +0100
+++ b/tests/org/jfree/data/time/TimeSeriesCollectionTest.java 2013-05-21 00:18:03.840041846 +0200
@@ -339,6 +339,10 @@
* java.util.List, boolean)} method.
*/
public void testFindDomainBounds() {
+ // store the current time zone
+ TimeZone saved = TimeZone.getDefault();
+ TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
+
TimeSeriesCollection dataset = new TimeSeriesCollection();
List visibleSeriesKeys = new java.util.ArrayList();
Range r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys,
@@ -351,10 +355,6 @@
r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
assertNull(r);
- // store the current time zone
- TimeZone saved = TimeZone.getDefault();
- TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
-
s1.add(new Year(2008), 8.0);
r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
assertEquals(1199142000000.0, r.getLowerBound(), EPSILON);