KandraTestUtils
object KandraTestUtils
Factory object for creating in-memory Kandra runtimes suitable for unit tests.
Functions
Link copied to clipboard
Registers classes in SchemaRegistry and returns a KandraRuntime backed by FakeKandraSession — no ScyllaDB connection required.
Link copied to clipboard
Clears Kandra's process-global schema registry so the next test starts clean. Call from @AfterEach. This is the public, stable way to do what SchemaRegistry.clear() does — SchemaRegistry itself is an internal API and needs an @OptIn(InternalKandraApi::class) to call directly.