38394041424344
private Boolean showAgain = null; private final Modal modal = getModal(); Modal getModal() { return new Modal( true, true ); }
2122232425262728293031
} @Test public void setContentDelegationTest() { Modal modal = splashViewUnitTestWrapper.getModal(); IsWidget mock = mock( IsWidget.class ); int height = 1; splashViewUnitTestWrapper.setContent( mock, height ); verify( modal ).add( mock );
3334353637383940414243
verify( modal ).setBodyHeigth( height ); } @Test public void showDelegationTest() { Modal modal = splashViewUnitTestWrapper.getModal(); splashViewUnitTestWrapper.show(); verify( modal ).show(); verify( modal ).addHideHandler( any( HideHandler.class ) ); }
42434445464748495051
verify( modal ).addHideHandler( any( HideHandler.class ) ); } @Test public void hideDelegationTest() { Modal modal = splashViewUnitTestWrapper.getModal(); splashViewUnitTestWrapper.hide(); verify( modal ).hide(); }