Search in sources :

Example 1 with IntSlider

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

Example 2 with IntSlider

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

Example 3 with IntSlider

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

Example 4 with IntSlider

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

Example 5 with IntSlider

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

Aggregations

IntSlider (com.twosigma.beakerx.widget.IntSlider)21 KernelTest (com.twosigma.beakerx.KernelTest)19 Test (org.junit.Test)19 Text (com.twosigma.beakerx.widget.Text)5 Widget (com.twosigma.beakerx.widget.Widget)4 CyclingDisplayBox (com.twosigma.beakerx.widget.CyclingDisplayBox)1 DirectionalLink (com.twosigma.beakerx.widget.DirectionalLink)1 Link (com.twosigma.beakerx.widget.Link)1 Tab (com.twosigma.beakerx.widget.Tab)1 Before (org.junit.Before)1