assertTrue("chart1 png does not exist", chart1File.exists());
}
public void testWriteHtmlSummaryToFileSystemOverwritingExistingFile() throws Exception
{
ChartingDefinition chartDef1 = mock(ChartingDefinition.class);
when(chartDef1.getChartStemName()).thenReturn("chart1");
when(chartDef1.getChartDescription()).thenReturn("chart description1");
ChartingDefinition chartDef2 = mock(ChartingDefinition.class);
when(chartDef2.getChartStemName()).thenReturn("chart2");
File summaryFile = new File(_chartDir, ChartWriter.SUMMARY_FILE_NAME);
writeDummyContentToSummaryFileToEnsureItGetsOverwritten(summaryFile);