Skip to content

Commit

Permalink
Merge branch 'v1.5.x' of https://github.com/jfree/jfreechart into v1.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jfree committed Oct 29, 2020
2 parents f8839fd + 1781fc8 commit 0e8ca74
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/test/java/org/jfree/data/time/TimeSeriesCollectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@
* Original Author: David Gilbert (for Object Refinery Limited);
* Contributor(s): -;
*
* Changes
* -------
* 01-May-2003 : Version 1 (DG);
* 04-Dec-2003 : Added a test for the getSurroundingItems() method (DG);
* 08-May-2007 : Added testIndexOf() method (DG);
* 18-May-2009 : Added testFindDomainBounds() (DG);
* 08-Jan-2012 : Added testBug3445507() (DG);
*
*/

package org.jfree.data.time;
Expand All @@ -58,7 +50,6 @@
import java.util.Locale;
import java.util.TimeZone;
import org.jfree.chart.TestUtils;

import org.jfree.data.Range;
import org.jfree.data.general.DatasetUtils;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -309,6 +300,10 @@ public void testIndexOf() {
*/
@Test
public void testFindDomainBounds() {
// store the current time zone
TimeZone saved = TimeZone.getDefault();
TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));

TimeSeriesCollection dataset = new TimeSeriesCollection();
List<String> visibleSeriesKeys = new ArrayList<>();
Range r = DatasetUtils.findDomainBounds(dataset, visibleSeriesKeys,
Expand All @@ -321,10 +316,6 @@ public void testFindDomainBounds() {
r = DatasetUtils.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 = DatasetUtils.findDomainBounds(dataset, visibleSeriesKeys, true);
assertEquals(1199142000000.0, r.getLowerBound(), EPSILON);
Expand Down

0 comments on commit 0e8ca74

Please sign in to comment.