32
32
import static com .datastax .driver .core .DataType .*;
33
33
import static com .datastax .driver .core .IndexMetadata .Kind .*;
34
34
35
- @ CassandraVersion (major = 1.2 )
35
+ @ CassandraVersion (" 1.2.0" )
36
36
public class IndexMetadataTest extends CCMTestsSupport {
37
37
38
38
/**
@@ -103,7 +103,7 @@ public void should_create_metadata_for_simple_index() {
103
103
}
104
104
105
105
@ Test (groups = "short" )
106
- @ CassandraVersion (major = 2.1 , description = "index names with quoted identifiers and collection indexes not supported until 2.1" )
106
+ @ CassandraVersion (value = " 2.1" , description = "index names with quoted identifiers and collection indexes not supported until 2.1" )
107
107
public void should_create_metadata_for_values_index_on_mixed_case_column () {
108
108
// 3.0 assumes the 'values' keyword if index on a collection
109
109
String createValuesIndex = ccm ().getVersion ().getMajor () > 2 ?
@@ -123,7 +123,7 @@ public void should_create_metadata_for_values_index_on_mixed_case_column() {
123
123
}
124
124
125
125
@ Test (groups = "short" )
126
- @ CassandraVersion (major = 2.1 )
126
+ @ CassandraVersion (" 2.1.0" )
127
127
public void should_create_metadata_for_index_on_map_values () {
128
128
// 3.0 assumes the 'values' keyword if index on a collection
129
129
String createValuesIndex = ccm ().getVersion ().getMajor () > 2 ?
@@ -143,7 +143,7 @@ public void should_create_metadata_for_index_on_map_values() {
143
143
}
144
144
145
145
@ Test (groups = "short" )
146
- @ CassandraVersion (major = 2.1 )
146
+ @ CassandraVersion (" 2.1.0" )
147
147
public void should_create_metadata_for_index_on_map_keys () {
148
148
String createKeysIndex = String .format ("CREATE INDEX map_keys_index ON %s.indexing (keys(map_keys));" , keyspace );
149
149
session ().execute (createKeysIndex );
@@ -160,7 +160,7 @@ public void should_create_metadata_for_index_on_map_keys() {
160
160
}
161
161
162
162
@ Test (groups = "short" )
163
- @ CassandraVersion (major = 2.1 , minor = 3 )
163
+ @ CassandraVersion (" 2.1.3" )
164
164
public void should_create_metadata_for_full_index_on_map () {
165
165
String createFullIndex = String .format ("CREATE INDEX map_full_index ON %s.indexing (full(map_full));" , keyspace );
166
166
session ().execute (createFullIndex );
@@ -177,7 +177,7 @@ public void should_create_metadata_for_full_index_on_map() {
177
177
}
178
178
179
179
@ Test (groups = "short" )
180
- @ CassandraVersion (major = 2.1 , minor = 3 )
180
+ @ CassandraVersion (" 2.1.3" )
181
181
public void should_create_metadata_for_full_index_on_set () {
182
182
String createFullIndex = String .format ("CREATE INDEX set_full_index ON %s.indexing (full(set_full));" , keyspace );
183
183
session ().execute (createFullIndex );
@@ -194,7 +194,7 @@ public void should_create_metadata_for_full_index_on_set() {
194
194
}
195
195
196
196
@ Test (groups = "short" )
197
- @ CassandraVersion (major = 2.1 , minor = 3 )
197
+ @ CassandraVersion (" 2.1.3" )
198
198
public void should_create_metadata_for_full_index_on_list () {
199
199
String createFullIndex = String .format ("CREATE INDEX list_full_index ON %s.indexing (full(list_full));" , keyspace );
200
200
session ().execute (createFullIndex );
@@ -211,7 +211,7 @@ public void should_create_metadata_for_full_index_on_list() {
211
211
}
212
212
213
213
@ Test (groups = "short" )
214
- @ CassandraVersion (major = 2.2 )
214
+ @ CassandraVersion (" 2.2.0" )
215
215
public void should_create_metadata_for_index_on_map_entries () {
216
216
String createEntriesIndex = String .format ("CREATE INDEX map_entries_index ON %s.indexing (entries(map_entries));" , keyspace );
217
217
session ().execute (createEntriesIndex );
@@ -228,7 +228,7 @@ public void should_create_metadata_for_index_on_map_entries() {
228
228
}
229
229
230
230
@ Test (groups = "short" )
231
- @ CassandraVersion (major = 3.0 )
231
+ @ CassandraVersion (" 3.0" )
232
232
public void should_allow_multiple_indexes_on_map_column () {
233
233
String createEntriesIndex = String .format ("CREATE INDEX map_all_entries_index ON %s.indexing (entries(map_all));" , keyspace );
234
234
session ().execute (createEntriesIndex );
0 commit comments