use of com.vaadin.flow.internal.nodefeature.ReturnChannelRegistration in project flow by vaadin.
the class ReturnChannelHandlerTest method unregisteredChannel_invocationIgnored.
@Test
public void unregisteredChannel_invocationIgnored() {
ReturnChannelRegistration registration = registerUiChannel();
registration.remove();
handleMessage(registration);
Assert.assertNull("Channel handler should not be called", observedArguments.get());
}
use of com.vaadin.flow.internal.nodefeature.ReturnChannelRegistration in project flow by vaadin.
the class ReturnChannelHandlerTest method disabledElement_defaultRegistration_invocationIgnored.
@Test
public void disabledElement_defaultRegistration_invocationIgnored() {
ReturnChannelRegistration registration = registerUiChannel();
ui.setEnabled(false);
handleMessage(registration);
Assert.assertNull("Channel handler should not be called", observedArguments.get());
}
Aggregations