Package com.redis.testcontainers.junit
Class AbstractTestcontainersRedisTestBase
- java.lang.Object
-
- com.redis.testcontainers.junit.AbstractTestcontainersRedisTestBase
-
- All Implemented Interfaces:
RedisTestInstance
@TestInstance(PER_CLASS) public abstract class AbstractTestcontainersRedisTestBase extends java.lang.Object implements RedisTestInstance
@ParameterizedTest @RedisTestContextsSource void myTest(RedisTestContext redis) { ... }- Author:
- jruaux
-
-
Constructor Summary
Constructors Constructor Description AbstractTestcontainersRedisTestBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidflushAll()java.util.List<RedisTestContext>getAllContexts()RedisTestContextgetContext(com.redis.testcontainers.RedisServer server)java.util.List<RedisTestContext>getContexts()protected abstract java.util.Collection<com.redis.testcontainers.RedisServer>redisServers()protected RedisTestContextremoveRedisTestContext(com.redis.testcontainers.RedisServer server)protected voidsetup()protected voidteardown()protected java.util.Collection<com.redis.testcontainers.RedisServer>testRedisServers()
-
-
-
Method Detail
-
redisServers
protected abstract java.util.Collection<com.redis.testcontainers.RedisServer> redisServers()
-
testRedisServers
protected java.util.Collection<com.redis.testcontainers.RedisServer> testRedisServers()
-
setup
@BeforeAll protected void setup()
-
removeRedisTestContext
protected RedisTestContext removeRedisTestContext(com.redis.testcontainers.RedisServer server)
-
flushAll
@BeforeEach protected void flushAll()
-
teardown
@AfterAll protected void teardown()
-
getContext
public RedisTestContext getContext(com.redis.testcontainers.RedisServer server)
-
getAllContexts
public java.util.List<RedisTestContext> getAllContexts()
-
getContexts
public java.util.List<RedisTestContext> getContexts()
- Specified by:
getContextsin interfaceRedisTestInstance
-
-