use of com.vaadin.flow.component.charts.events.internal.ItemSlicedEvent in project flow-components by vaadin.
the class ConfigurationJSONSerializationTest method configurationJSONSerialization_configurationSerializedWithChangeListener_changeListenerNotSerialized.
@Test
public void configurationJSONSerialization_configurationSerializedWithChangeListener_changeListenerNotSerialized() {
Configuration conf = new Configuration();
conf.addChangeListener(new ConfigurationChangeListener() {
@Override
public void dataAdded(DataAddedEvent event) {
// TODO Auto-generated method stub
}
@Override
public void dataRemoved(DataRemovedEvent event) {
// TODO Auto-generated method stub
}
@Override
public void dataUpdated(DataUpdatedEvent event) {
// TODO Auto-generated method stub
}
@Override
public void itemSliced(ItemSlicedEvent event) {
// TODO Auto-generated method stub
}
@Override
public void seriesStateChanged(SeriesStateEvent event) {
// TODO Auto-generated method stub
}
@Override
public void seriesAdded(SeriesAddedEvent event) {
// TODO Auto-generated method stub
}
@Override
public void seriesChanged(SeriesChangedEvent event) {
// TODO Auto-generated method stub
}
@Override
public void axisRescaled(AxisRescaledEvent event) {
// TODO Auto-generated method stub
}
@Override
public void resetZoom(boolean redraw, boolean animate) {
// TODO Auto-generated method stub
}
});
assertEquals("{\"chart\":{\"styledMode\":false},\"plotOptions\":{},\"series\":[],\"exporting\":{\"enabled\":false}}", toJSON(conf));
}
Aggregations