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 1
1
package processing .app ;
2
2
3
3
import org .junit .After ;
4
+ import org .junit .Assume ;
4
5
import org .junit .Before ;
5
6
import org .junit .Test ;
6
- import processing .app .debug .TargetBoard ;
7
7
8
+ import processing .app .debug .TargetBoard ;
8
9
import static org .junit .Assert .assertNotEquals ;
9
10
10
11
public class DefaultTargetTest extends AbstractWithPreferencesTest {
@@ -29,6 +30,9 @@ public void testDefaultTarget() throws Exception {
29
30
// should not raise an exception
30
31
new Base (new String [0 ]);
31
32
33
+ // skip test if no target platforms are available
34
+ Assume .assumeNotNull (BaseNoGui .getTargetPlatform ());
35
+
32
36
TargetBoard targetBoard = BaseNoGui .getTargetBoard ();
33
37
assertNotEquals ("unreal_board" , targetBoard .getId ());
34
38
}
You can’t perform that action at this time.
0 commit comments