mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
Temporary disabled DefaultTargetTest under certain conditions
This commit is contained in:
parent
3a062f0582
commit
5ff4c9f8dc
@ -1,10 +1,11 @@
|
||||
package processing.app;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Assume;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import processing.app.debug.TargetBoard;
|
||||
|
||||
import processing.app.debug.TargetBoard;
|
||||
import static org.junit.Assert.assertNotEquals;
|
||||
|
||||
public class DefaultTargetTest extends AbstractWithPreferencesTest {
|
||||
@ -29,6 +30,9 @@ public class DefaultTargetTest extends AbstractWithPreferencesTest {
|
||||
// should not raise an exception
|
||||
new Base(new String[0]);
|
||||
|
||||
// skip test if no target platforms are available
|
||||
Assume.assumeNotNull(BaseNoGui.getTargetPlatform());
|
||||
|
||||
TargetBoard targetBoard = BaseNoGui.getTargetBoard();
|
||||
assertNotEquals("unreal_board", targetBoard.getId());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user