Questions tagged [cassandraunit]
14 questions
10
votes
2 answers
EmbeddedCassandra : Cannot run unit tests
I am using EmbeddedCassandraServerHelper to perform unit tests. Here is my pom
org.apache.nifi
nifi-api
1.4.0
…

AbtPst
- 7,778
- 17
- 91
- 172
2
votes
2 answers
Problem with Eclipse when using Java 11 and Cassandra Spring Unit possibly along with lombok and gradle
So I ran into a problem with a project. Where Eclipse would say that java.util.* has an import error The package java.util is accessible from more than one module: , java.base
I dug around a lot it appears that for some reason no one else…

zooppoop
- 171
- 1
- 1
- 9
2
votes
2 answers
Cassandra-unit : java.io.IOException: Connection reset by peer
I'm trying out Embedded Cassandra using cassandra-unit and ran into the following exception,
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1…

Sowmiya Nagarajan
- 63
- 6
2
votes
1 answer
Cassandra : Cannot start EmbeddedCassandraServerHelper
I am trying to use EmbeddedCassandraServerHelper for testing. Here is my setup code
@BeforeClass
public static void initCassandra() throws ConfigurationException{
try {
Properties prop = new Properties();
…

AbtPst
- 7,778
- 17
- 91
- 172
1
vote
1 answer
EmbeddedCassandra is not working with Cassandra Java driver 4.x
I was using cassandra-unit 3.5.0.1 with cassandra-driver-core 3.6.0.
My application was running fine.
Now when I try to upgrade to java-driver-core 4.3.1 and cassandra-unit 4.3.1.0, I am getting error when I try to run my tests in maven.
Caused by:…

saisree
- 43
- 3
1
vote
1 answer
Embedded Cassandra unit testing options
Our team was in the process of updating our dependencies and one of those is Cassandra Unit. I noticed that the last time this library was updated was in January of 2020 and that there hasn't been any activity in a long time. In addition there are…

Mike Barlotta
- 715
- 4
- 16
1
vote
0 answers
Cassandra unit spring - Launch an embedded Cassandra only once per test class
I am setting up integration tests for my spring-boot application using cassandra-unit-spring maven dependency. I am able to run my tests which invoke the spring-boot application which in turn accesses an in-memory embedded Cassandra database.
Below…

Amit Singh
- 31
- 1
- 7
1
vote
1 answer
How to test code that uses DSE Cassandra/Solr?
I am working on an application where we are interfacing with Datastax Enterprise edition (we are auto syncing with solr).
I was wondering how can this application be efficiently tested.
I was considering embedded cassandra for testing but the caveat…

Utsav
- 536
- 2
- 6
- 18
1
vote
1 answer
Embedded Cassandra: how to apply a script?
I want to write tests against the data access layer powered by Cassandra.
So I use Embedded Cassandra with Astyanax and cassandra-unit, but I can't find the way to load a script which contains something like this into the embedded instance:
create…

d3rzKy
- 142
- 2
- 9
0
votes
2 answers
Does cassandra-unit run with JDK 17?
I tried to run an EmbeddedCassandra.startEmbeddedCassandra() in my unit tests (with casandra-unit:4.3.1.0) and after the startEmbeddedCassandra() is called no errors is thrown but is still loading, no timeout added to the method is…

mihai
- 41
- 6
0
votes
0 answers
Caught exception while invoking 'beforeTestClass' cassandra-unit Java 17
Faced a problem with running integration test with cassandra-unit:
My test class:
@ActiveProfiles("test")
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@TestExecutionListeners(listeners =…

marshallbaby
- 11
- 4
0
votes
0 answers
Why is CQLDataLoader returning keyspace already exists when it doesn't?
I checked to see if the keyspace exists before creation, but both checks returns null. However, when I execute the keyspace creation cql file, it always returns that the keyspace already exists. I'm using…

Cris Manrique
- 35
- 4
0
votes
0 answers
Unable to create keyspace in EmbeddedCassandra for JUnit
Iam writing JUnits for with cassandra as DB.
Iam using EmbeddedCassandra for JUnit testing with cassandra-unit-spring library version 3.1.1.0.
However, when I start the EmbeddedCassandra server. It's not able to load CQL indicating keyspace doesn't…

Dhruv Saksena
- 209
- 2
- 13
0
votes
1 answer
Weirdness ensues when running integraton tests with Spring Cloud Stream, Spring Data Cassandra and Cassandra-Unit-Spring
I'm using Cassandra as an Event Store for my app, with Spring Cloud Stream receiving the events and Spring Cloud Cassandra saving them.
In order to listen to different events, I've created a ClientEvent with two user defined types: client and…

Tarek
- 3,080
- 5
- 38
- 54