Example #1
0
 @Test
 public void testDefaultValue() throws Exception {
   sh = SocketHints.Inputs.createNumberSliderSocketHint("foo", TEST_VALUE, 0.0, 1.0);
   socket = new OutputSocketImpl<>(eventBus, sh);
   assertEquals(TEST_VALUE, socket.getValue().get());
 }
Example #2
0
 @Test
 public void testSetValue() throws Exception {
   socket.setValue(TEST_VALUE);
   assertEquals(TEST_VALUE, socket.getValue().get());
 }