Skip navigation links
A B C E F G I T V W 

A

AchillesTestResource<T extends AbstractManagerFactory> - Class in info.archinnov.achilles.junit
WARNING: this AchillesTestResource will use an unsafe Cassandra daemon, it is not suitable for production

Test resource for JUnit.
AchillesTestResource(BiFunction<Cluster, StatementsCache, T>, TypedMap, Optional<String>, List<String>, List<Class<?>>) - Constructor for class info.archinnov.achilles.junit.AchillesTestResource
 
AchillesTestResource(BiFunction<Cluster, StatementsCache, T>, TypedMap, Optional<String>, AchillesTestResource.Steps, List<String>, List<Class<?>>) - Constructor for class info.archinnov.achilles.junit.AchillesTestResource
 
AchillesTestResource.Steps - Enum in info.archinnov.achilles.junit
 
AchillesTestResourceBuilder - Class in info.archinnov.achilles.junit
WARNING: this AchillesTestResource will use an unsafe Cassandra daemon, it is not suitable for production

Builder class to create an instance of AchillesTestResource

 AchillesTestResourceBuilder
 .forJunit()
 .withScript("script1.cql")
 .withScript("script2.cql")
 .tablesToTruncate("user", "account") // entityClassesToTruncate(UserEntity.class, AccountEntity.class)
 .createAndUseKeyspace("unit_test")
 .
after() - Method in class info.archinnov.achilles.junit.AchillesTestResource
 

B

before() - Method in class info.archinnov.achilles.junit.AchillesTestResource
 
build(BiFunction<Cluster, StatementsCache, T>) - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
Provide a lambda function to build the ManagerFactory instance with the given Cluster object

C

createAndUseKeyspace(String) - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
Keyspace name to create

E

entityClassesToTruncate(Class<?>...) - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
Entity classes whose table should be truncated during unit tests

F

forJunit() - Static method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
 

G

getManagerFactory() - Method in class info.archinnov.achilles.junit.AchillesTestResource
 
getNativeSession() - Method in class info.archinnov.achilles.junit.AchillesTestResource
 
getScriptExecutor() - Method in class info.archinnov.achilles.junit.AchillesTestResource
 

I

info.archinnov.achilles.junit - package info.archinnov.achilles.junit
 
isAfter() - Method in enum info.archinnov.achilles.junit.AchillesTestResource.Steps
 
isBefore() - Method in enum info.archinnov.achilles.junit.AchillesTestResource.Steps
 

T

tablesToTruncate(String...) - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
Tables to be truncated during unit tests
truncateAfterTest() - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
Truncate tables AFTER each test
truncateBeforeAndAfterTest() - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
Truncate tables BEFORE and AFTER each test
truncateBeforeTest() - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
Truncate tables BEFORE each test
truncateTables() - Method in class info.archinnov.achilles.junit.AchillesTestResource
 

V

valueOf(String) - Static method in enum info.archinnov.achilles.junit.AchillesTestResource.Steps
Returns the enum constant of this type with the specified name.
values() - Static method in enum info.archinnov.achilles.junit.AchillesTestResource.Steps
Returns an array containing the constants of this enum type, in the order they are declared.

W

withCassandraParams(Map<String, Object>) - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
Use this function to add parameters to cassandra startup.
withProtocolVersion(ProtocolVersion) - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
Set the protocol version for the Java driver to connect to the embedded Cassandra server
withScript(String) - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
/** 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.
withScriptTemplate(String, Map<String, Object>) - Method in class info.archinnov.achilles.junit.AchillesTestResourceBuilder
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.
A B C E F G I T V W 

Copyright © 2012-2021. All Rights Reserved.