/** Test {@link SitarWindow#isModal()} when it shouldn't be. */ @Test public void testShellIsModalFalse() { Shell shell = new Shell(display); SitarWindow swtWindow = new SitarWindow(shell); assertEquals(swtWindow.isModal(), false); }
/** Test {@link SitarWindow#isModal()}. */ @Test public void testShellIsModal() { Shell shell = new Shell(display, SWT.APPLICATION_MODAL); SitarWindow swtWindow = new SitarWindow(shell); assertEquals(swtWindow.isModal(), true); }