use of com.twosigma.beakerx.chart.xychart.plotitem.ConstantBand in project beakerx by twosigma.
the class XYChartTest method shouldSendCommMsgWhenAddConstantBandByLeftShift.
@Test
public void shouldSendCommMsgWhenAddConstantBandByLeftShift() throws Exception {
// given
XYChart xyChart = createWidget();
// when
xyChart.leftShift(new ConstantBand());
// then
List valueAsArray = getValueAsArray(CONSTANT_BANDS);
Map actual = (Map) valueAsArray.get(0);
assertThat(actual.get(ConstantBandSerializer.TYPE)).isEqualTo(ConstantBand.class.getSimpleName());
}
Aggregations