Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 460952 | Differences between
and this patch

Collapse All | Expand All

(-)a/tests/org/jfree/data/time/junit/TimeSeriesCollectionTests.java (-4 / +4 lines)
Lines 339-344 Link Here
339
     * java.util.List, boolean)} method.
339
     * java.util.List, boolean)} method.
340
     */
340
     */
341
    public void testFindDomainBounds() {
341
    public void testFindDomainBounds() {
342
        // store the current time zone
343
        TimeZone saved = TimeZone.getDefault();
344
        TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
345
342
        TimeSeriesCollection dataset = new TimeSeriesCollection();
346
        TimeSeriesCollection dataset = new TimeSeriesCollection();
343
        List visibleSeriesKeys = new java.util.ArrayList();
347
        List visibleSeriesKeys = new java.util.ArrayList();
344
        Range r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys,
348
        Range r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys,
Lines 351-360 Link Here
351
        r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
355
        r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
352
        assertNull(r);
356
        assertNull(r);
353
357
354
        // store the current time zone
355
        TimeZone saved = TimeZone.getDefault();
356
        TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
357
358
        s1.add(new Year(2008), 8.0);
358
        s1.add(new Year(2008), 8.0);
359
        r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
359
        r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
360
        assertEquals(1199142000000.0, r.getLowerBound(), EPSILON);
360
        assertEquals(1199142000000.0, r.getLowerBound(), EPSILON);

Return to bug 460952