Skip to content

Commit 7a1df2a

Browse files
authored
Check to verify if on windows or not, if so, don't run these specific tests (#1025)
1 parent 86b071a commit 7a1df2a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

quick-start/src/test/java/com/marklogic/quickstart/web/HubConfigJsonTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
import com.marklogic.hub.HubConfig;
55
import com.marklogic.hub.HubConfigBuilder;
6+
import org.junit.Before;
7+
import org.junit.Ignore;
68
import org.junit.Test;
79
import org.junit.runner.RunWith;
810
import org.springframework.beans.factory.annotation.Autowired;
@@ -14,6 +16,7 @@
1416
import java.io.IOException;
1517

1618
import static org.assertj.core.api.Assertions.assertThat;
19+
import static sun.awt.OSInfo.OSType.WINDOWS;
1720

1821
@RunWith(SpringJUnit4ClassRunner.class)
1922
@JsonTest
@@ -24,6 +27,11 @@ public class HubConfigJsonTest {
2427
@Autowired
2528
private JacksonTester<HubConfig> json;
2629

30+
@Before
31+
public void skipWindows() {
32+
org.junit.Assume.assumeTrue(!System.getProperty("os.name").startsWith("Windows"));
33+
}
34+
2735
@Test
2836
public void testDeserialize() throws IOException {
2937
String projectPath = new File(PROJECT_PATH).getAbsolutePath();

0 commit comments

Comments
 (0)