File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
spar-wings-ratelimiter/src/test/java/jp/xet/sparwings/spring/web/ratelimiter Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11# dependency versions
2- springBootVersion = 2.0.6 .RELEASE
2+ springBootVersion = 2.1.0 .RELEASE
33springSecurityOauth2Version = 2.2.1.RELEASE
44awsJavaSdkVersion = 1.11.233
55
6- lombokVersion = 1.16.18
6+ lombokVersion = 1.18.2
77baseunitsVersion = 2.14
88
99junitVersion = 4.12
1010hamcrestVersion = 1.3
11- mockito.version = 2.19 .0
11+ mockito.version = 2.23 .0
Original file line number Diff line number Diff line change 2727
2828import lombok .extern .slf4j .Slf4j ;
2929
30+ import org .springframework .data .redis .connection .RedisStandaloneConfiguration ;
3031import org .springframework .data .redis .connection .jedis .JedisConnectionFactory ;
3132import org .springframework .data .redis .core .RedisCallback ;
3233import org .springframework .data .redis .core .RedisTemplate ;
@@ -60,10 +61,9 @@ public class RedisRateLimitServiceTest {
6061
6162 @ Before
6263 public void setUp () throws Exception {
63- JedisConnectionFactory jedisConnectionFactory = new JedisConnectionFactory ();
64- jedisConnectionFactory .setHostName ("localhost" );
65- jedisConnectionFactory .setPort (6379 );
66- jedisConnectionFactory .setDatabase (5 );
64+ RedisStandaloneConfiguration configuration = new RedisStandaloneConfiguration ("localhost" , 6379 );
65+ configuration .setDatabase (5 );
66+ JedisConnectionFactory jedisConnectionFactory = new JedisConnectionFactory (configuration );
6767 jedisConnectionFactory .afterPropertiesSet ();
6868 RedisTemplate <String , Long > redisTemplate = new RedisTemplate <>();
6969 redisTemplate .setKeySerializer (new StringRedisSerializer ());
You can’t perform that action at this time.
0 commit comments