use of com.google.gwt.user.client.ui.ClickListener in project gwt-test-utils by gwt-test-utils.
the class ButtonTest method click_ClickListener.
@Test
public void click_ClickListener() {
// Given
b.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
b.setHTML("clicked");
}
});
// Preconditions
assertThat(b.getHTML()).isEqualTo("");
// When
b.click();
// Then
assertThat(b.getHTML()).isEqualTo("clicked");
}
Aggregations