Skip to content

Commit 5ff4c9f

Browse files
committed
Temporary disabled DefaultTargetTest under certain conditions
1 parent 3a062f0 commit 5ff4c9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/test/processing/app/DefaultTargetTest.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package processing.app;
22

33
import org.junit.After;
4+
import org.junit.Assume;
45
import org.junit.Before;
56
import org.junit.Test;
6-
import processing.app.debug.TargetBoard;
77

8+
import processing.app.debug.TargetBoard;
89
import static org.junit.Assert.assertNotEquals;
910

1011
public 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
}

0 commit comments

Comments
 (0)