Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximevw committed Mar 13, 2021
1 parent 79ed3e9 commit e9a8a4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
class BatchStatementsUnitTest extends UsingEmbeddedCassandraServerTest {

private static final String KEYSPACE = "test_keyspace_coll";
private static final String KEYSPACE = "test_keyspace_batch";
private static CassandraConnection sqlConnection2 = null;

@BeforeAll
Expand Down
11 changes: 11 additions & 0 deletions src/test/resources/initEmbeddedCassandra.cql
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ INSERT INTO collections_test (keyValue, listValue) VALUES(1, [1, 3, 12345]);
UPDATE collections_test SET setValue = {'red', 'white', 'blue'} WHERE keyValue = 1;
UPDATE collections_test SET mapValue = {2.0: true, 4.0: false, 6.0 : true} WHERE keyValue = 1;

/* Init keyspace and tables for BatchStatementsUnitTest */
DROP KEYSPACE IF EXISTS test_keyspace_batch;
CREATE KEYSPACE "test_keyspace_batch" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};

USE test_keyspace_batch;
CREATE TABLE collections_test (
keyValue int PRIMARY KEY,
listValue list<bigint>,
mapValue map<double, boolean>,
setValue set<text>);

/* Init keyspace and tables for JdbcRegressionUnitTest */
DROP KEYSPACE IF EXISTS test_keyspace3;
CREATE KEYSPACE "test_keyspace3" WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
Expand Down

0 comments on commit e9a8a4b

Please sign in to comment.