public class CassandraTableCleanupListener
extends org.springframework.test.context.support.DependencyInjectionTestExecutionListener
| Constructor and Description |
|---|
CassandraTableCleanupListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTestMethod(org.springframework.test.context.TestContext testContext)
gets the singleton instance of CassandraTestDB and executes truncate on all known tables
|
beforeTestMethod, getOrder, injectDependencies, prepareTestInstancepublic void afterTestMethod(org.springframework.test.context.TestContext testContext)
throws Exception
afterTestMethod in interface org.springframework.test.context.TestExecutionListenerafterTestMethod in class org.springframework.test.context.support.AbstractTestExecutionListenertestContext - spring test context to injectExceptionCopyright © 2015. All rights reserved.