且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法确定我的脚本是否在嵌入式cassandra中正确执行

更新时间:2023-12-04 22:20:22

无法设置版本

It is not possible to set a version from a configuration file.

您是否使用任何 slf4j 提供程序进行日志记录?

Do you use any of slf4j providers for logging ?

查看脚本已执行的最简单方法是为 com启用 debug 级别。github.nosan .embedded.cassandra.test.util.CqlUtils

The easiest way to see that your scripts have been executed it just enables debug level for com.github.nosan.embedded.cassandra.test.util.CqlUtils.

如果您没有看到任何异常,则说明脚本执行没有问题。

If you don't see any exceptions then there is no issues with scripts execution.


我试图通过传递cassandraFactory和
cqlStatements来创建TestCassandra,但是在TestCassandra中出现了太多的参数

I tried to create TestCassandra by passing cassandraFactory and cqlStatements but I got error too many arguments in TestCassandra

我认为您应该使用此构造函数。

I think you should use this constructor.

public TestCassandra(CassandraFactory cassandraFactory, CqlScript... scripts) {}

new TestCassandra(cassandraFactory, CqlScripts.statemets(...,...))