I am using cassandra-unit to do unit tests, and I'm using com.datastax.oss:java-driver-core version 4.3.1
I have this table:
and I'm trying to execute this query:
I get the error:
Because in my unit tests I'm using a single node cassandra (cassandra-unit).
I thought I just need to set the consistency level to ONE, but on the CqlSession and CqlSessionBuilder classes there are no methods to set up the consistency level.
So I tried this code:
But I get the same error:
What am I doing wrong? Ho can I setup the consistency level using java-driver 4.3.1 ?
Thanks in advance; best regards.
cassandra single node