* GwtBootstrapModule(); module.onModuleLoad(); }
**/
@Test
public void testModal() {
Modal modal = new Modal();
modal.add(new Label("Modal"));
ModalFooter footer = new ModalFooter();
footer.add(new Button("close"));
modal.add(footer);
modal.addShowHandler(showHandler);
modal.addShownHandler(shownHandler);
modal.addHideHandler(hideHandler);
modal.addHiddenHandler(hiddenHandler);
assertFalse(modal.isVisible());
modal.show();
assertTrue(modal.isVisible());
verify(showHandler).onShow(any(ShowEvent.class));
verify(shownHandler).onShown(any(ShownEvent.class));
modal.hide();
assertFalse(modal.isVisible());
verify(hideHandler).onHide(any(HideEvent.class));
verify(hiddenHandler).onHidden(any(HiddenEvent.class));
modal.toggle();
assertTrue(modal.isVisible());
// for unsetHandlerFunctions
modal.setDynamicSafe(true);
modal.hide();
}