| Modifier and Type | Method and Description |
|---|---|
AchillesTestResourceBuilder |
AchillesTestResourceBuilder.createAndUseKeyspace(String keyspaceName)
Keyspace name to create
|
AchillesTestResourceBuilder |
AchillesTestResourceBuilder.entityClassesToTruncate(Class<?>... entityClassesToTruncate)
Entity classes whose table should be truncated during unit tests
|
static AchillesTestResourceBuilder |
AchillesTestResourceBuilder.forJunit() |
AchillesTestResourceBuilder |
AchillesTestResourceBuilder.tablesToTruncate(String... tablesToTruncate)
Tables to be truncated during unit tests
|
AchillesTestResourceBuilder |
AchillesTestResourceBuilder.truncateAfterTest()
Truncate tables AFTER each test
|
AchillesTestResourceBuilder |
AchillesTestResourceBuilder.truncateBeforeAndAfterTest()
Truncate tables BEFORE and AFTER each test
|
AchillesTestResourceBuilder |
AchillesTestResourceBuilder.truncateBeforeTest()
Truncate tables BEFORE each test
|
AchillesTestResourceBuilder |
AchillesTestResourceBuilder.withCassandraParams(Map<String,Object> cassandraParams)
Use this function to add parameters to cassandra startup.
|
AchillesTestResourceBuilder |
AchillesTestResourceBuilder.withProtocolVersion(ProtocolVersion protocolVersion)
Set the protocol version for the Java driver to connect to the embedded Cassandra server
|
AchillesTestResourceBuilder |
AchillesTestResourceBuilder.withScript(String scriptLocation)
/**
Load an CQL script in the class path and execute it upon initialization
of the embedded Cassandra server
Call this method as many times as there are CQL scripts to be executed. |
AchillesTestResourceBuilder |
AchillesTestResourceBuilder.withScriptTemplate(String scriptTemplateLocation,
Map<String,Object> values)
Load an CQL script template in the class path, inject the values into the template
to produce the final script and execute it upon initialization
of the embedded Cassandra server
Call this method as many times as there are CQL templates to be executed. |
Copyright © 2012-2021. All Rights Reserved.