@Test public void hideDelegationTest() { Modal modal = splashViewUnitTestWrapper.getModal(); splashViewUnitTestWrapper.hide(); verify(modal).hide(); }
@Test public void showDelegationTest() { Modal modal = splashViewUnitTestWrapper.getModal(); splashViewUnitTestWrapper.show(); verify(modal).show(); verify(modal).addHideHandler(any(HideHandler.class)); }
@Test public void setContentDelegationTest() { Modal modal = splashViewUnitTestWrapper.getModal(); IsWidget mock = mock(IsWidget.class); int height = 1; splashViewUnitTestWrapper.setContent(mock, height); verify(modal).add(mock); verify(modal).add(splashViewUnitTestWrapper.footer); verify(modal).setBodyHeigth(height); }