Elffuss BraidHub

kikocis/java-driver public

Skip ProtocolV1Test on Windows

CCM does not work with C* 1.2 on windows and windows isn't officially
supported until 2.2.
Changeset1bc6dee8bb7216f576c8ac88bf8312afeda34481021409bb9315c00e95b4c170
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-07-11 10:17 -05:00
Committerolim7t <omichallat+github@gmail.com> · 2016-07-13 13:12 -07:00
Parents1ba747e5d00e

Browse the files at this changeset

2 files changed

modified driver-core/src/test/java/com/datastax/driver/core/CCMBridge.java +1 −1
@@ -193,7 +193,7 @@
193193 *
194194 * @return <code>true</code> if the operating system is a Windows one, <code>false</code> otherwise.
195195 */
196- private static boolean isWindows() {
196+ public static boolean isWindows() {
197197
198198 String osName = System.getProperty("os.name");
199199 return osName != null && osName.startsWith("Windows");
modified driver-core/src/test/java/com/datastax/driver/core/ProtocolV1Test.java +8 −0
@@ -16,6 +16,7 @@
1616 package com.datastax.driver.core;
1717
1818 import com.datastax.driver.core.exceptions.UnsupportedFeatureException;
19+import org.testng.SkipException;
1920 import org.testng.annotations.Test;
2021
2122 import static com.datastax.driver.core.ProtocolVersion.V1;
@@ -33,6 +34,13 @@
3334 .withProtocolVersion(V1);
3435 }
3536
37+ @Override
38+ public void beforeTestClass(Object testInstance) throws Exception {
39+ if (CCMBridge.isWindows())
40+ throw new SkipException("C* 1.2 is not supported on Windows.");
41+ super.beforeTestClass(testInstance);
42+ }
43+
3644 /**
3745 * Validates that a simple query with no variables is correctly executed.
3846 * @jira_ticket JAVA-1132