File tree Expand file tree Collapse file tree 4 files changed +20
-9
lines changed
test/unit/org/apache/cassandra/index Expand file tree Collapse file tree 4 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 24
24
import java .util .stream .StreamSupport ;
25
25
26
26
import com .google .common .base .Joiner ;
27
- import com .google .common .collect .*;
27
+ import com .google .common .collect .ImmutableMap ;
28
+ import com .google .common .collect .Iterators ;
29
+ import com .google .common .collect .Lists ;
30
+ import com .google .common .collect .Sets ;
31
+ import org .awaitility .Awaitility ;
32
+ import org .junit .BeforeClass ;
28
33
import org .junit .Test ;
29
34
30
35
import org .apache .cassandra .Util ;
42
47
import org .apache .cassandra .schema .ColumnMetadata ;
43
48
import org .apache .cassandra .schema .SchemaConstants ;
44
49
import org .apache .cassandra .schema .TableMetadata ;
50
+ import org .apache .cassandra .service .StorageService ;
45
51
import org .apache .cassandra .utils .ByteBufferUtil ;
46
52
import org .apache .cassandra .utils .FBUtilities ;
47
- import org .awaitility .Awaitility ;
48
53
49
54
import static org .apache .cassandra .Util .throwAssert ;
50
55
import static org .junit .Assert .assertArrayEquals ;
58
63
*/
59
64
public class CassandraIndexTest extends CQLTester
60
65
{
66
+ @ BeforeClass
67
+ public static void setup ()
68
+ {
69
+ StorageService .instance .initServer (); // Ensure the node has advanced out of STARTING mode
70
+ }
71
+
61
72
@ Test
62
73
public void indexOnRegularColumn () throws Throwable
63
74
{
Original file line number Diff line number Diff line change 23
23
24
24
import org .apache .cassandra .cql3 .UntypedResultSet ;
25
25
import org .apache .cassandra .index .sai .SAITester ;
26
+ import org .apache .cassandra .service .StorageService ;
26
27
27
28
public class EmptyStringLifecycleTest extends SAITester
28
29
{
29
30
@ BeforeClass
30
31
public static void setup ()
31
32
{
32
- setUpClass ();
33
- requireNetwork (); // Ensure the node has advanced out of STARTING mode
33
+ StorageService .instance .initServer (); // Ensure the node has advanced out of STARTING mode
34
34
}
35
35
36
36
@ Test
Original file line number Diff line number Diff line change 20
20
*/
21
21
package org .apache .cassandra .index .sai .functional ;
22
22
23
+ import org .assertj .core .api .Assertions ;
23
24
import org .junit .BeforeClass ;
24
25
import org .junit .Test ;
25
26
31
32
import org .apache .cassandra .index .sai .utils .IndexTermType ;
32
33
import org .apache .cassandra .inject .Injection ;
33
34
import org .apache .cassandra .inject .Injections ;
34
- import org .assertj . core . api . Assertions ;
35
+ import org .apache . cassandra . service . StorageService ;
35
36
36
37
import static org .junit .Assert .assertEquals ;
37
38
@@ -40,8 +41,7 @@ public class FailureTest extends SAITester
40
41
@ BeforeClass
41
42
public static void setup ()
42
43
{
43
- setUpClass ();
44
- requireNetwork (); // Ensure the node has advanced out of STARTING mode
44
+ StorageService .instance .initServer (); // Ensure the node has advanced out of STARTING mode
45
45
}
46
46
47
47
@ Test
Original file line number Diff line number Diff line change 29
29
import org .apache .cassandra .inject .Injections ;
30
30
import org .apache .cassandra .inject .InvokePointBuilder ;
31
31
import org .apache .cassandra .schema .SchemaConstants ;
32
+ import org .apache .cassandra .service .StorageService ;
32
33
33
34
/**
34
35
* Tests the virtual table exposing storage-attached column index metadata.
@@ -59,8 +60,7 @@ public static void setup()
59
60
{
60
61
VirtualKeyspaceRegistry .instance .register (new VirtualKeyspace (SchemaConstants .VIRTUAL_VIEWS , ImmutableList .of (new ColumnIndexesSystemView (SchemaConstants .VIRTUAL_VIEWS ))));
61
62
62
- setUpClass ();
63
- requireNetwork (); // Ensure the node has advanced out of STARTING mode
63
+ StorageService .instance .initServer (); // Ensure the node has advanced out of STARTING mode
64
64
}
65
65
66
66
@ Test
You can’t perform that action at this time.
0 commit comments