Skip to content

Commit c06e8ab

Browse files
author
github-actions
committed
chore: Java 스타일 수정
1 parent c7da054 commit c06e8ab

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

backend/src/test/java/io/f1/backend/global/config/RedissonTestContainerConfig.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.f1.backend.global.config;
22

33
import com.redis.testcontainers.RedisContainer;
4+
45
import org.redisson.Redisson;
56
import org.redisson.api.RedissonClient;
67
import org.redisson.config.Config;
@@ -15,8 +16,8 @@ public class RedissonTestContainerConfig {
1516

1617
@Container
1718
public static RedisContainer redisContainer =
18-
new RedisContainer(
19-
RedisContainer.DEFAULT_IMAGE_NAME.withTag(RedisContainer.DEFAULT_TAG));
19+
new RedisContainer(
20+
RedisContainer.DEFAULT_IMAGE_NAME.withTag(RedisContainer.DEFAULT_TAG));
2021

2122
static {
2223
redisContainer.start();
@@ -25,12 +26,13 @@ public class RedissonTestContainerConfig {
2526
@Bean
2627
public RedissonClient redissonClient() {
2728
Config config = new Config();
28-
String address = String.format("redis://%s:%d",
29-
RedissonTestContainerConfig.redisContainer.getHost(),
30-
RedissonTestContainerConfig.redisContainer.getFirstMappedPort());
29+
String address =
30+
String.format(
31+
"redis://%s:%d",
32+
RedissonTestContainerConfig.redisContainer.getHost(),
33+
RedissonTestContainerConfig.redisContainer.getFirstMappedPort());
3134

32-
config.useSingleServer()
33-
.setAddress(address);
35+
config.useSingleServer().setAddress(address);
3436

3537
return Redisson.create(config);
3638
}

0 commit comments

Comments
 (0)