Browse souce code repository at: https://github.com/jjYBdx4IL/java-evaluation/blob/master/src/test/java/org/jfree/chart/TimeSeriesChartTest.java
/*
 * #%L
 * Evaluation
 * %%
 * Copyright (C) 2014 - 2016 Github jjYBdx4IL Projects
 * %%
 * #L%
 */
package org.jfree.chart;

import java.io.File;
import java.lang.reflect.InvocationTargetException;

import org.junit.Test;
import com.github.jjYBdx4IL.utils.env.Maven;
import com.github.jjYBdx4IL.utils.junit4.Screenshot;

/**
 *
 * @author Github jjYBdx4IL Projects
 */
public class TimeSeriesChartTest extends TestBase {
    private static final File TEMP_DIR = Maven.getTempTestDir(TimeSeriesChartTest.class);

    @Test
    public void testTimeSeriesChart() throws InvocationTargetException, InterruptedException {
        openWindow();

        JFreeChart chart = getTimeSeriesChart();

        ChartPanel chartPanel = new ChartPanel(chart);
        chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
        append(chartPanel);

        Screenshot.takeDesktopScreenshot("testTimeSeriesChart", true);
        writeWindowAsPng(new File(TEMP_DIR, "testTimeSeriesChart.png"));
        // 
        waitForWindowClosing();
    }
}
-------------------------------------------------------------------------------
Test set: org.jfree.chart.TimeSeriesChartTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.309 s - in org.jfree.chart.TimeSeriesChartTest
testTimeSeriesChart  Time elapsed: 0.306 s