Skip to content

Commit fe7707c

Browse files
authored
Update TransactionControllerTest.java
1 parent 9372968 commit fe7707c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/test/java/com/kakaopaysec/controller/TransactionControllerTest.java

+11-11
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void setUp() {
4848
@Test
4949
@DisplayName("모든 주제 순위 랜덤 변경 API 테스트(정상)")
5050
void update_institutions() {
51-
mockMvc.perform(post("/v1/random"))
51+
mockMvc.perform(post("/v1/stock/random"))
5252
.andDo(print())
5353
.andExpect(status().isOk())
5454
.andExpect(content().contentType(APPLICATION_JSON_UTF8))
@@ -60,7 +60,7 @@ void update_institutions() {
6060
@DisplayName("모든 주제 순위를 랜덤하게 변경한다.(실패)")
6161
void addAccountsfail() throws Exception {
6262

63-
mockMvc.perform(post("/v1/random"))
63+
mockMvc.perform(post("/v1/stock/random"))
6464
.andDo(print()).andExpect(status().is5xxServerError())
6565
.andExpect(handler().handlerType(AccountController.class))
6666
.andExpect(handler().methodName("add"))
@@ -71,7 +71,7 @@ void addAccountsfail() throws Exception {
7171
@Test
7272
@DisplayName("모든 주제 Top5 조회 API 테스트(정상)")
7373
void search_all_top5_topics() {
74-
mockMvc.perform(get("/v1/rank"))
74+
mockMvc.perform(get("/v1/stock/rank"))
7575
.andDo(print())
7676
.andExpect(status().isOk())
7777
.andExpect(content().contentType(APPLICATION_JSON_UTF8))
@@ -82,7 +82,7 @@ void search_all_top5_topics() {
8282
@Test
8383
@DisplayName("많이 본 주식 Top20 조회 API 테스트(정상)")
8484
void search_view_top20_topics() {
85-
mockMvc.perform(get("/api/rank/0"))
85+
mockMvc.perform(get("/v1/stock/rank/0"))
8686
.andDo(print())
8787
.andExpect(status().isOk())
8888
.andExpect(content().contentType(APPLICATION_JSON_UTF8))
@@ -93,7 +93,7 @@ void search_view_top20_topics() {
9393
@Test
9494
@DisplayName("많이 본 주식 Top100 조회 API 테스트(정상)")
9595
void search_view_top100_topics() {
96-
mockMvc.perform(get("/v1/rank/0"))
96+
mockMvc.perform(get("/v1/stock/rank/0"))
9797
.param("paging", 100))
9898
.andDo(print())
9999
.andExpect(status().isOk())
@@ -105,7 +105,7 @@ void search_view_top100_topics() {
105105
@Test
106106
@DisplayName("많이 오른 주식 Top20 조회 API 테스트(정상)")
107107
void search_rise_top20_topics() {
108-
mockMvc.perform(get("/v1/rank/1"))
108+
mockMvc.perform(get("/v1/stock/rank/1"))
109109
.andDo(print())
110110
.andExpect(status().isOk())
111111
.andExpect(content().contentType(APPLICATION_JSON_UTF8))
@@ -116,7 +116,7 @@ void search_rise_top20_topics() {
116116
@Test
117117
@DisplayName("많이 오른 주식 Top100 조회 API 테스트(정상)")
118118
void search_rise_top100_topics() {
119-
mockMvc.perform(get("/v1/rank/1"))
119+
mockMvc.perform(get("/v1/stock/rank/1"))
120120
.param("paging", 100))
121121
.andDo(print())
122122
.andExpect(status().isOk())
@@ -128,7 +128,7 @@ void search_rise_top100_topics() {
128128
@Test
129129
@DisplayName("많이 내린 주식 Top20 조회 API 테스트(정상)")
130130
void search_drop_top20_topics() {
131-
mockMvc.perform(get("/v1/rank/2"))
131+
mockMvc.perform(get("/v1/stock/rank/2"))
132132
.andDo(print())
133133
.andExpect(status().isOk())
134134
.andExpect(content().contentType(APPLICATION_JSON_UTF8))
@@ -139,7 +139,7 @@ void search_drop_top20_topics() {
139139
@Test
140140
@DisplayName("많이 내린 주식 Top100 조회 API 테스트(정상)")
141141
void search_drop_top100_topics() {
142-
mockMvc.perform(get("/v1/rank/2"))
142+
mockMvc.perform(get("/v1/stock/rank/2"))
143143
.param("paging", 100))
144144
.andDo(print())
145145
.andExpect(status().isOk())
@@ -151,7 +151,7 @@ void search_drop_top100_topics() {
151151
@Test
152152
@DisplayName("많이 보유한 주식 Top20 조회 API 테스트(정상)")
153153
void search_volume_top20_topics() {
154-
mockMvc.perform(get("/v1/rank/3"))
154+
mockMvc.perform(get("/v1/stock/rank/3"))
155155
.andDo(print())
156156
.andExpect(status().isOk())
157157
.andExpect(content().contentType(APPLICATION_JSON_UTF8))
@@ -162,7 +162,7 @@ void search_volume_top20_topics() {
162162
@Test
163163
@DisplayName("많이 보유한 주식 Top100 조회 API 테스트(정상)")
164164
void search_volume_top100_topics() {
165-
mockMvc.perform(get("/v1/rank/3"))
165+
mockMvc.perform(get("/v1/stock/rank/3"))
166166
.param("paging", 100))
167167
.andDo(print())
168168
.andExpect(status().isOk())

0 commit comments

Comments
 (0)