|
@@ -173,6 +173,13 @@ public class ModalStackTest extends BaseTest {
|
173
|
173
|
verifyZeroInteractions(listener);
|
174
|
174
|
}
|
175
|
175
|
|
|
176
|
+ @Test
|
|
177
|
+ public void dismissAllModals_resolveSuccessfullyIfEmpty() {
|
|
178
|
+ CommandListener spy = spy(new CommandListenerAdapter());
|
|
179
|
+ uut.dismissAllModals(root, Options.EMPTY, spy);
|
|
180
|
+ verify(spy, times(1)).onSuccess(root.getId());
|
|
181
|
+ }
|
|
182
|
+
|
176
|
183
|
@Test
|
177
|
184
|
public void dismissAllModals_optionsAreMergedOnTopModal() {
|
178
|
185
|
uut.showModal(modal1, root, new CommandListenerAdapter());
|