use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method shouldSendCommMsgWhenChangeContinuous_update.
@Test
public void shouldSendCommMsgWhenChangeContinuous_update() throws Exception {
// given
IntSlider intSlider = intSlider();
// when
intSlider.setContinuous_update(false);
// then
verifyMsgForProperty(groovyKernel, IntSlider.CONTINUOUS_UPDATE, false);
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class IntSliderTest method setContinuousUpdate_hasThatContinuousUpdateFlag.
@Test
public void setContinuousUpdate_hasThatContinuousUpdateFlag() throws Exception {
boolean expected = true;
// given
IntSlider intSlider = intSlider();
// when
intSlider.setContinuous_update(expected);
// then
Assertions.assertThat(intSlider.getContinuous_update()).isEqualTo(expected);
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class LinkTest method createWithFourParams_shouldSendCommOpenMessage.
@Test
public void createWithFourParams_shouldSendCommOpenMessage() throws Exception {
// given
Widget source = new IntSlider();
Widget target = new Text();
kernel.clearPublishedMessages();
// when
new Link(source, "source", target, "target");
// then
Assertions.assertThat(SearchMessages.getListWidgetsByModelName(kernel.getPublishedMessages(), Link.MODEL_NAME_VALUE)).isNotEmpty();
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class CyclingDisplayBoxTest method createWithParam_shouldSendCommOpenMessage.
@Test
public void createWithParam_shouldSendCommOpenMessage() throws Exception {
// given
List<Widget> children = Arrays.asList(new IntSlider(), new Text());
kernel.clearPublishedMessages();
// when
new CyclingDisplayBox(children);
// then
verifyInternalOpenCommMsgWitLayout(kernel.getPublishedMessages(), CyclingDisplayBox.MODEL_NAME_VALUE, CyclingDisplayBox.VIEW_NAME_VALUE);
}
use of com.twosigma.beakerx.widget.IntSlider in project beakerx by twosigma.
the class TabTest method shouldSendCommOpenWhenCreateWithChildren.
@Test
public void shouldSendCommOpenWhenCreateWithChildren() throws Exception {
// given
List<Widget> children = asList(new IntSlider(), new Text());
kernel.clearPublishedMessages();
// when
new Tab(children, asList("t1", "t2"));
// then
verifyInternalOpenCommMsgWitLayout(kernel.getPublishedMessages(), Tab.MODEL_NAME_VALUE, Tab.VIEW_NAME_VALUE);
verifyChildren(children);
verifyTitles();
}
Aggregations