Skip to content

Commit

Permalink
fix: build 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
kmebin committed Dec 1, 2023
1 parent 785ec48 commit ef71959
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.List;
import java.util.Set;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -38,6 +39,11 @@ public class RankingServiceTest {
@Autowired
RankingService rankingService;

@BeforeEach
void init() {
redisTemplate.delete("Ranking");
}

@DisplayName("redis에 추가")
@Nested
class Add {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.ArrayList;
import java.util.List;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -40,6 +41,11 @@ class RankingControllerTest extends WithoutFilterSupporter {
@Autowired
RedisTemplate<String, Object> redisTemplate;

@BeforeEach
void init() {
redisTemplate.delete("Ranking");
}

@DisplayName("")
@WithMember
@Test
Expand Down
5 changes: 5 additions & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,8 @@ payment:
toss:
base-url: "https://api.tosspayments.com"
secret-key: "test_sk_4yKeq5bgrpWk4XYdDoBxVGX0lzW6:"

# Webhook
webhook:
slack:
url: test

0 comments on commit ef71959

Please sign in to comment.