diff options
author | Julien HENRY <henryju@yahoo.fr> | 2016-07-05 14:22:33 +0200 |
---|---|---|
committer | Julien HENRY <henryju@yahoo.fr> | 2016-07-05 14:22:33 +0200 |
commit | 062cc9de4ac3d480fb5f5544144572a5adee001c (patch) | |
tree | 876506a5f1b2a7475af4a1aa40d3dbc172afdf9e /src/test | |
parent | 879338a7853b557e353616a85f6371efa1c91605 (diff) | |
download | sonar-scanner-cli-062cc9de4ac3d480fb5f5544144572a5adee001c.tar.gz sonar-scanner-cli-062cc9de4ac3d480fb5f5544144572a5adee001c.zip |
Fix ITs (Findbugs not compatible with Java 4.0)
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/sonarsource/scanner/cli/ConfTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/java/org/sonarsource/scanner/cli/ConfTest.java b/src/test/java/org/sonarsource/scanner/cli/ConfTest.java index db9b6c5..3450e88 100644 --- a/src/test/java/org/sonarsource/scanner/cli/ConfTest.java +++ b/src/test/java/org/sonarsource/scanner/cli/ConfTest.java @@ -25,12 +25,14 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Properties; +import org.apache.commons.lang.SystemUtils; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import static org.fest.assertions.Assertions.assertThat; +import static org.junit.Assume.assumeTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; @@ -233,6 +235,7 @@ public class ConfTest { @Test public void shouldNotResolveSymlinks() throws IOException, URISyntaxException { + assumeTrue(SystemUtils.IS_OS_UNIX); Path root = temp.getRoot().toPath(); Path realProjectHome = Paths.get(getClass().getResource("ConfTest/shouldLoadModuleConfiguration/project").toURI()); Path linkProjectHome = root.resolve("link"); |