File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
modules/cassandra/src/test/java/org/testcontainers/containers Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 5
5
This example connects to the Cassandra Cluster, creates a keyspaces and asserts that is has been created.
6
6
7
7
<!-- codeinclude-->
8
- [ Building CqlSession] ( ../../../modules/cassandra/src/test/java/org/testcontainers/containers/CassandraDriver3Test .java ) inside_block: cassandra
8
+ [ Building CqlSession] ( ../../../modules/cassandra/src/test/java/org/testcontainers/containers/CassandraDriver4Test .java ) inside_block: cassandra
9
9
<!-- /codeinclude-->
10
10
11
11
!!! warning
Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ public class CassandraDriver4Test {
16
16
@ Test
17
17
public void testCassandraGetContactPoint () {
18
18
try (
19
+ // cassandra {
19
20
CqlSession session = CqlSession
20
21
.builder ()
21
22
.addContactPoint (this .cassandra .getContactPoint ())
22
23
.withLocalDatacenter (this .cassandra .getLocalDatacenter ())
23
24
.build ()
25
+ // }
24
26
) {
25
27
session .execute (
26
28
"CREATE KEYSPACE IF NOT EXISTS test WITH replication = \n " +
You can’t perform that action at this time.
0 commit comments