You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/02/26 21:18:25 UTC

[sling-ide-tooling] branch feature/SLING-7597 updated: SLING-7597 - Investigate setting up Windows testing

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/SLING-7597
in repository https://gitbox.apache.org/repos/asf/sling-ide-tooling.git


The following commit(s) were added to refs/heads/feature/SLING-7597 by this push:
     new 74048d7  SLING-7597 - Investigate setting up Windows testing
74048d7 is described below

commit 74048d72063abefcc60b173dcd204eb2e1c6416e
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Feb 26 22:18:19 2019 +0100

    SLING-7597 - Investigate setting up Windows testing
    
    Ignore DirWatcherTest.deletedFile on Windows (for now).
---
 .../test/java/org/apache/sling/ide/cli/impl/DirWatcherTest.java    | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/cli/cli/src/test/java/org/apache/sling/ide/cli/impl/DirWatcherTest.java b/cli/cli/src/test/java/org/apache/sling/ide/cli/impl/DirWatcherTest.java
index 5548afa..3bb03a4 100644
--- a/cli/cli/src/test/java/org/apache/sling/ide/cli/impl/DirWatcherTest.java
+++ b/cli/cli/src/test/java/org/apache/sling/ide/cli/impl/DirWatcherTest.java
@@ -20,9 +20,12 @@ import static java.nio.charset.StandardCharsets.UTF_8;
 import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
 import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE;
 import static java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY;
+import static org.hamcrest.Matchers.containsString;
 import static org.hamcrest.Matchers.equalTo;
 import static org.hamcrest.Matchers.greaterThanOrEqualTo;
+import static org.hamcrest.Matchers.not;
 import static org.junit.Assert.assertThat;
+import static org.junit.Assume.assumeThat;
 
 import java.io.File;
 import java.io.IOException;
@@ -32,6 +35,8 @@ import java.util.ArrayList;
 import java.util.List;
 import java.util.function.Consumer;
 
+import org.hamcrest.Matchers;
+import org.junit.Assume;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TemporaryFolder;
@@ -111,6 +116,8 @@ public class DirWatcherTest {
     @Test(timeout = 3000)
     public void deletedFile() throws IOException, InterruptedException {
         
+        assumeThat(System.getProperty("os.name"), not(containsString("Windows")));
+        
         File watchRoot = folder.newFolder();
         File subDir = new File(watchRoot, "subDir");
         subDir.mkdir();