use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenOrientationChange.
@Test
public void shouldSendCommMsgWhenOrientationChange() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.setOrientation("vertical");
// then
verifyMsgForProperty(groovyKernel, IntSlider.ORIENTATION, "vertical");
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenMinChange.
@Test
public void shouldSendCommMsgWhenMinChange() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.setMin(10);
// then
verifyMsgForProperty(groovyKernel, BoundedIntWidget.MIN, 10);
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenVisibleChange.
@Test
public void shouldSendCommMsgWhenVisibleChange() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.getLayout().setVisibility("hidden");
// then
verifyMsgForProperty(groovyKernel, Layout.VISIBILITY, "hidden");
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method setReadout_hasThatReadoutFlag.
@Test
public void setReadout_hasThatReadoutFlag() throws Exception {
boolean expected = true;
// given
IntSlider intSlider = intSlider();
// when
intSlider.setReadOut(expected);
// then
Assertions.assertThat(intSlider.getReadOut()).isEqualTo(expected);
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method intSlider.
private IntSlider intSlider() throws NoSuchAlgorithmException {
IntSlider intSlider = new IntSlider();
groovyKernel.clearPublishedMessages();
return intSlider;
}
Aggregations