Missing API to set the consistency level on CqlSession object

Description

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[1] and CqlSessionBuilder[2] classes there are no methods to set up the consistency level.

[1]: https://docs.datastax.com/en/drivers/java/4.3/com/datastax/oss/driver/api/core/CqlSession.html
[2]: https://docs.datastax.com/en/drivers/java/4.3/com/datastax/oss/driver/api/core/CqlSessionBuilder.html

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.
Luigi.

Environment

cassandra single node

Pull Requests

None

Assignee

Unassigned

Reporter

Luigi Viggiano

Labels

PM Priority

None

Reproduced in

4.3.1

Affects versions

Fix versions

None

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Components

Priority

Major
Configure