Search in sources :

Example 1 with DirectionalLink

use of com.twosigma.beakerx.widget.DirectionalLink 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();
}
Also used : DirectionalLink(com.twosigma.beakerx.widget.DirectionalLink) Widget(com.twosigma.beakerx.widget.Widget) Text(com.twosigma.beakerx.widget.Text) IntSlider(com.twosigma.beakerx.widget.IntSlider) Test(org.junit.Test) KernelTest(com.twosigma.beakerx.KernelTest)

Aggregations

KernelTest (com.twosigma.beakerx.KernelTest)1 DirectionalLink (com.twosigma.beakerx.widget.DirectionalLink)1 IntSlider (com.twosigma.beakerx.widget.IntSlider)1 Text (com.twosigma.beakerx.widget.Text)1 Widget (com.twosigma.beakerx.widget.Widget)1 Test (org.junit.Test)1