kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 1bc6dee8bb7216f576c8ac88bf8312afeda34481021409bb9315c00e95b4c170 |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2016-07-11 10:17 -05:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-07-13 13:12 -07:00 |
| Parents | 1ba747e5d00e |
2 files changed
modified driver-core/src/test/java/com/datastax/driver/core/CCMBridge.java +1 −1
| @@ -193,7 +193,7 @@ | ||
| 193 | 193 | * |
| 194 | 194 | * @return <code>true</code> if the operating system is a Windows one, <code>false</code> otherwise. |
| 195 | 195 | */ |
| 196 | - private static boolean isWindows() { | |
| 196 | + public static boolean isWindows() { | |
| 197 | 197 | |
| 198 | 198 | String osName = System.getProperty("os.name"); |
| 199 | 199 | return osName != null && osName.startsWith("Windows"); |
modified driver-core/src/test/java/com/datastax/driver/core/ProtocolV1Test.java +8 −0
| @@ -16,6 +16,7 @@ | ||
| 16 | 16 | package com.datastax.driver.core; |
| 17 | 17 | |
| 18 | 18 | import com.datastax.driver.core.exceptions.UnsupportedFeatureException; |
| 19 | +import org.testng.SkipException; | |
| 19 | 20 | import org.testng.annotations.Test; |
| 20 | 21 | |
| 21 | 22 | import static com.datastax.driver.core.ProtocolVersion.V1; |
| @@ -33,6 +34,13 @@ | ||
| 33 | 34 | .withProtocolVersion(V1); |
| 34 | 35 | } |
| 35 | 36 | |
| 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 | + | |
| 36 | 44 | /** |
| 37 | 45 | * Validates that a simple query with no variables is correctly executed. |
| 38 | 46 | * @jira_ticket JAVA-1132 |