We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a062f0 commit 5ff4c9fCopy full SHA for 5ff4c9f
app/test/processing/app/DefaultTargetTest.java
@@ -1,10 +1,11 @@
1
package processing.app;
2
3
import org.junit.After;
4
+import org.junit.Assume;
5
import org.junit.Before;
6
import org.junit.Test;
-import processing.app.debug.TargetBoard;
7
8
+import processing.app.debug.TargetBoard;
9
import static org.junit.Assert.assertNotEquals;
10
11
public class DefaultTargetTest extends AbstractWithPreferencesTest {
@@ -29,6 +30,9 @@ public void testDefaultTarget() throws Exception {
29
30
// should not raise an exception
31
new Base(new String[0]);
32
33
+ // skip test if no target platforms are available
34
+ Assume.assumeNotNull(BaseNoGui.getTargetPlatform());
35
+
36
TargetBoard targetBoard = BaseNoGui.getTargetBoard();
37
assertNotEquals("unreal_board", targetBoard.getId());
38
}
0 commit comments