use of com.vaadin.flow.component.charts.model.Configuration in project flow-components by vaadin.
the class SVGGeneratorTest method generateSVGFromAnEmptyConfiguration.
@Test
public void generateSVGFromAnEmptyConfiguration() throws IOException, InterruptedException {
Configuration configuration = new Configuration();
String svg = svgGenerator.generate(configuration);
Path emptyConfigChart = Paths.get("src", "test", "resources", "empty.svg");
String emptyChartContent = readUtf8File(emptyConfigChart);
assertEquals(replaceIds(emptyChartContent), replaceIds(svg));
}
use of com.vaadin.flow.component.charts.model.Configuration in project flow-components by vaadin.
the class ConfigurationTest method configurationSetSeriesWithArraysAsListTest.
@Test(expected = Test.None.class)
public void configurationSetSeriesWithArraysAsListTest() {
Configuration conf = new Configuration();
conf.setSeries(Arrays.asList(new ListSeries()));
conf.addSeries(new ListSeries());
assertEquals(conf.getSeries().size(), 2);
}
Aggregations