use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenDescriptionChange.
@Test
public void shouldSendCommMsgWhenDescriptionChange() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.setDescription("Description 2");
// then
verifyMsgForProperty(groovyKernel, Widget.DESCRIPTION, "Description 2");
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenDisableChange.
@Test
public void shouldSendCommMsgWhenDisableChange() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.setDisabled(true);
// then
verifyMsgForProperty(groovyKernel, Widget.DISABLED, true);
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenReadOutChange.
@Test
public void shouldSendCommMsgWhenReadOutChange() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.setReadOut(false);
// then
verifyMsgForProperty(groovyKernel, IntSlider.READOUT, false);
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenStepChange.
@Test
public void shouldSendCommMsgWhenStepChange() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.setStep(12);
// then
verifyMsgForProperty(groovyKernel, BoundedIntWidget.STEP, 12);
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenMaxChange.
@Test
public void shouldSendCommMsgWhenMaxChange() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.setMax(122);
// then
verifyMsgForProperty(groovyKernel, BoundedIntWidget.MAX, 122);
}
Aggregations