Temporary disabled DefaultTargetTest under certain conditions

This commit is contained in:
Cristian Maglie 2014-11-27 15:52:54 +01:00
parent 3a062f0582
commit 5ff4c9f8dc
1 changed files with 5 additions and 1 deletions

View File

@ -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());
}