use of com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryBars in project beakerx by twosigma.
the class CategoryPlotTest method shouldSendCommMsgWhenAddCategoryBarsByLeftShift.
@Test
public void shouldSendCommMsgWhenAddCategoryBarsByLeftShift() throws Exception {
// given
CategoryPlot plot = createWidget();
CategoryBars graphics = new CategoryBars();
// when
plot.leftShift(graphics);
// then
assertThat(plot.getGraphics().get(0)).isEqualTo(graphics);
List valueAsArray = getValueAsArray(CategoryPlotSerializer.GRAPHICS_LIST);
assertThat(valueAsArray).isNotEmpty();
}
Aggregations