File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/test/java/org/scijava/ui Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 3131
3232package org .scijava .ui ;
3333
34+ import static org .junit .Assert .assertEquals ;
3435import static org .junit .Assert .assertFalse ;
3536import static org .junit .Assert .assertTrue ;
3637
38+ import java .util .List ;
39+
3740import org .junit .After ;
3841import org .junit .Before ;
3942import 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 ();
You can’t perform that action at this time.
0 commit comments