File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11package processing .app ;
22
33import org .junit .After ;
4+ import org .junit .Assume ;
45import org .junit .Before ;
56import org .junit .Test ;
6- import processing .app .debug .TargetBoard ;
77
8+ import processing .app .debug .TargetBoard ;
89import static org .junit .Assert .assertNotEquals ;
910
1011public class DefaultTargetTest extends AbstractWithPreferencesTest {
@@ -29,6 +30,9 @@ public void testDefaultTarget() throws Exception {
2930 // should not raise an exception
3031 new Base (new String [0 ]);
3132
33+ // skip test if no target platforms are available
34+ Assume .assumeNotNull (BaseNoGui .getTargetPlatform ());
35+
3236 TargetBoard targetBoard = BaseNoGui .getTargetBoard ();
3337 assertNotEquals ("unreal_board" , targetBoard .getId ());
3438 }
You can’t perform that action at this time.
0 commit comments