Change constructor signature for RedisMetricRepository
Otherwise we had to rely on afterPropertiesSet() being called to validate and compute the prefix and key (which depend on each other).
This commit is contained in:
@@ -41,10 +41,8 @@ public class RedisMetricRepositoryTests {
|
||||
|
||||
@Before
|
||||
public void init() {
|
||||
this.repository = new RedisMetricRepository(this.redis.getResource());
|
||||
this.prefix = "spring.test." + System.currentTimeMillis();
|
||||
this.repository.setPrefix(this.prefix);
|
||||
this.repository.afterPropertiesSet();
|
||||
this.repository = new RedisMetricRepository(this.redis.getResource(), this.prefix);
|
||||
}
|
||||
|
||||
@After
|
||||
|
||||
Reference in New Issue
Block a user