class RedisServerExtension : ParameterResolver, AfterAllCallback
(source)
A junit5 extension, that sets up an ephemeral Redis server for tests. The ephemeral Redis server is created with a random free port for the test suite and injected into any tests with parameters of type Integer
annotated with RedisPort
NOTE: Redis does not support picking a random port on its own. This extension tries its best to test free ports and avoid collisions.
<init> |
A junit5 extension, that sets up an ephemeral Redis server for tests. The ephemeral Redis server is created with a random free port for the test suite and injected into any tests with parameters of type RedisServerExtension() |
afterAll |
fun afterAll(context: ExtensionContext!): Unit |
resolveParameter |
fun resolveParameter(parameterContext: ParameterContext!, extensionContext: ExtensionContext!): Any! |
supportsParameter |
fun supportsParameter(parameterContext: ParameterContext!, extensionContext: ExtensionContext!): Boolean |