Skip to content

Commit 57f764d

Browse files
committed
UIServiceTest: add a couple more tests
1 parent 611eee2 commit 57f764d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/java/org/scijava/ui/UIServiceTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@
3131

3232
package org.scijava.ui;
3333

34+
import static org.junit.Assert.assertEquals;
3435
import static org.junit.Assert.assertFalse;
3536
import static org.junit.Assert.assertTrue;
3637

38+
import java.util.List;
39+
3740
import org.junit.After;
3841
import org.junit.Before;
3942
import org.junit.Test;
@@ -64,6 +67,18 @@ public void tearDown() {
6467
context.dispose();
6568
}
6669

70+
@Test
71+
public void testDefaultUI() {
72+
assertTrue(uiService.getDefaultUI() instanceof HeadlessUI);
73+
}
74+
75+
@Test
76+
public void testAvailableUIs() {
77+
final List<UserInterface> uiList = uiService.getAvailableUIs();
78+
assertEquals(1, uiList.size());
79+
assertTrue(uiList.get(0) instanceof HeadlessUI);
80+
}
81+
6782
@Test
6883
public void testHeadlessUI() {
6984
final MockUserInterface mockUI = new MockUserInterface();

0 commit comments

Comments
 (0)