@Test
 public void clickOnButton() {
   clickHandler.onClick(new ClickEvent() {});
   Mockito.verify(element)
       .setInnerHTML("Client said: \"Hello, World!\"<br>Server answered: \"Hi!\"");
 }
  @Test
  public void testRestoreDefaultFilters() {
    clickHandler.onClick(new ClickEvent() {});

    verify(supportsRestoreDefaultFilters).onRestoreDefaultFilters();
  }
Пример #3
0
        public void onClick(ClickEvent event) {

          for (ClickHandler iconClickHandler : m_iconClickHandlers) {
            iconClickHandler.onClick(event);
          }
        }