|
I have three other options for you:
1. Obtaining the RedisClient by a ServiceLoader and use a dedicated ServiceLoader for the unit tests 2. Use a TestRedisDatastoreProvider just for the unit tests. We could then extend the integration tests for some additional corner cases around initialization etc. 3. Shutdown-Hook and use a static instance of RedisClient. No reflection magic anymore with 3.3.Beta1
|