Search in sources :

Example 6 with ComplexPanel

use of com.google.gwt.user.client.ui.ComplexPanel in project gwt-test-utils by gwt-test-utils.

the class ComplexPanelTest method count.

@Test
public void count() {
    // Given
    ComplexPanel panel = new FlowPanel();
    panel.add(new Button());
    panel.add(new Button());
    // When & Then
    assertThat(panel.getWidgetCount()).isEqualTo(2);
}
Also used : Button(com.google.gwt.user.client.ui.Button) ComplexPanel(com.google.gwt.user.client.ui.ComplexPanel) FlowPanel(com.google.gwt.user.client.ui.FlowPanel) Test(org.junit.Test)

Aggregations

ComplexPanel (com.google.gwt.user.client.ui.ComplexPanel)6 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)6 Test (org.junit.Test)6 Button (com.google.gwt.user.client.ui.Button)4