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.
RedisServerExtension()
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. |
fun afterAll(context: ExtensionContext): Unit |
|
fun resolveParameter(parameterContext: ParameterContext, extensionContext: ExtensionContext): Any |
|
fun supportsParameter(parameterContext: ParameterContext, extensionContext: ExtensionContext): Boolean |