use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class DirectionalLinkTest method createWithFourParams_shouldSendCommOpenMessage.
@Test
public void createWithFourParams_shouldSendCommOpenMessage() throws Exception {
// given
Widget source = new IntSlider();
Widget target = new Text();
kernel.clearPublishedMessages();
// when
new DirectionalLink(source, "source", target, "target");
// then
Assertions.assertThat(SearchMessages.getListWidgetsByModelName(kernel.getPublishedMessages(), DirectionalLink.MODEL_NAME_VALUE)).isNotEmpty();
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class DisplayTest method shouldSendMessageForWidget.
@Test
public void shouldSendMessageForWidget() {
// given
// when
Display.display(new IntSlider());
// then
verifyWidget();
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class AccordionTest method setUp.
@Before
public void setUp() throws Exception {
kernel = new KernelTest();
KernelManager.register(kernel);
children = Arrays.asList(new IntSlider(), new Text());
kernel.clearPublishedMessages();
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenValueChange.
@Test
public void shouldSendCommMsgWhenValueChange() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.setValue(11);
// then
verifyMsgForProperty(groovyKernel, IntSlider.VALUE, 11);
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenMsg_throttleChange.
@Test
public void shouldSendCommMsgWhenMsg_throttleChange() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.setMsg_throttle(12);
// then
verifyMsgForProperty(groovyKernel, Widget.MSG_THROTTLE, 12);
}
Aggregations