When tests are located into a submodule of a multimodule maven project, both CassandraUnit and Cassandra (I'm using 2.2.6) fail to delete files in tmpDir.
Frankly, I don't understand why: it looks like file.toPath() is fooled by a relative folder in Cassandra's FileUtiles.deleteWithConfirm.
Anyway, running tests forcing working directory to be module's one and forking the jvm solves the issue
This should also be part of the documentation
When tests are located into a submodule of a multimodule maven project, both CassandraUnit and Cassandra (I'm using 2.2.6) fail to delete files in
tmpDir
. Frankly, I don't understand why: it looks likefile.toPath()
is fooled by a relative folder in Cassandra'sFileUtiles.deleteWithConfirm
. Anyway, running tests forcing working directory to be module's one and forking the jvm solves the issue This should also be part of the documentation