Beispiel #1
0
  /** There is a much better functional test */
  @Test
  public void receiveBroadcastMessage() throws Exception {
    // given
    prepAttach();
    ui.attach();
    ui.setScope(uiScope);
    ui.setInstanceKey(uiKey);

    // when
    ui.receiveBroadcast("group", "message", uiKey, 55);
    // then
    assertThat(logMonitor.debugLogs())
        .contains("UI instance UIKey:33 receiving message id: 55 from: UIKey:33");
  }