kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | e82ad000a95f302d9dfd79b4d0af37dc090d21439c1743ed99be08773329b308 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-08-19 18:22 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-08-19 19:47 +02:00 |
| Parents | 17b9736df245 |
1 file changed
modified driver-core/src/test/java/com/datastax/driver/core/TableMetadataTest.java +7 −1
| @@ -18,6 +18,7 @@ | ||
| 18 | 18 | import java.util.Collection; |
| 19 | 19 | import java.util.Collections; |
| 20 | 20 | |
| 21 | +import org.testng.SkipException; | |
| 21 | 22 | import org.testng.annotations.Test; |
| 22 | 23 | |
| 23 | 24 | import static org.assertj.core.api.Assertions.entry; |
| @@ -172,6 +173,12 @@ | ||
| 172 | 173 | |
| 173 | 174 | @Test(groups = "short") |
| 174 | 175 | public void should_parse_table_options() { |
| 176 | + VersionNumber version = TestUtils.findHost(cluster, 1).getCassandraVersion(); | |
| 177 | + if (version.getMajor() > 2) { | |
| 178 | + // TODO adapt test for C* 3.0 | |
| 179 | + throw new SkipException("Needs adjustments to work with Cassandra 3.0"); | |
| 180 | + } | |
| 181 | + | |
| 175 | 182 | // given |
| 176 | 183 | String cql = String.format("CREATE TABLE %s.with_options (\n" |
| 177 | 184 | + " k text,\n" |
| @@ -200,7 +207,6 @@ | ||
| 200 | 207 | assertThat(table.getColumns().get(2)).isNotNull().hasName("c2").isClusteringColumn().hasClusteringOrder(ASC).hasType(cint()); |
| 201 | 208 | assertThat(table.getColumns().get(3)).isNotNull().hasName("i").isRegularColumn().hasType(cint()); |
| 202 | 209 | assertThat(table); |
| 203 | - VersionNumber version = TestUtils.findHost(cluster, 1).getCassandraVersion(); | |
| 204 | 210 | |
| 205 | 211 | // Cassandra 3.0 + |
| 206 | 212 | if (version.getMajor() > 2) { |