@@ -77,7 +77,7 @@ void setUp() {
7777 void t1 () throws Exception {
7878 ResultActions resultActions = mvc
7979 .perform (
80- post ("/post/comment/post/ {post_id}" , 1L )
80+ post ("/post/{post_id}/comment " , 1L )
8181 .contentType (MediaType .APPLICATION_JSON )
8282 .content ("""
8383 {
@@ -105,7 +105,7 @@ void t1() throws Exception {
105105 void t2 () throws Exception {
106106 ResultActions resultActions = mvc
107107 .perform (
108- post ("/post/comment/post/ {post_id}" , 1L )
108+ post ("/post/{post_id}/comment " , 1L )
109109 .contentType (MediaType .APPLICATION_JSON )
110110 .content ("""
111111 {
@@ -132,7 +132,7 @@ void t2() throws Exception {
132132 void t3 () throws Exception {
133133 ResultActions resultActions = mvc
134134 .perform (
135- get ("/post/comment/ post/{post_id}" , 1L )
135+ get ("/post/post/{post_id}" , 1L )
136136 )
137137 .andDo (print ());
138138
@@ -153,7 +153,7 @@ void t3() throws Exception {
153153 void t4 () throws Exception {
154154 mvc
155155 .perform (
156- post ("/post/comment/post/ {post_id}" , 2L )
156+ post ("/post/{post_id}/comment " , 2L )
157157 .contentType (MediaType .APPLICATION_JSON )
158158 .content ("""
159159 {
@@ -171,7 +171,7 @@ void t4() throws Exception {
171171 // 댓글 삭제
172172 ResultActions resultActions = mvc
173173 .perform (
174- delete ("/post/comment/post/ {post_id}/comment" , 2L ) // URL 수정
174+ delete ("/post/{post_id}/comment" , 2L ) // URL 수정
175175 .contentType (MediaType .APPLICATION_JSON ) // Content-Type 추가
176176 .content ("""
177177 {
@@ -194,7 +194,7 @@ void t4() throws Exception {
194194 void t5 () throws Exception {
195195 ResultActions resultActions = mvc
196196 .perform (
197- delete ("/post/comment/post/ {post_id}/comment" , 1L ) // URL 수정
197+ delete ("/post/{post_id}/comment" , 1L ) // URL 수정
198198 .contentType (MediaType .APPLICATION_JSON )
199199 .content ("""
200200 {
@@ -217,7 +217,7 @@ void t5() throws Exception {
217217 void t6 () throws Exception {
218218 mvc
219219 .perform (
220- post ("/post/comment/post/ {post_id}" , 2L )
220+ post ("/post/{post_id}/comment " , 2L )
221221 .contentType (MediaType .APPLICATION_JSON )
222222 .content ("""
223223 {
@@ -232,7 +232,7 @@ void t6() throws Exception {
232232
233233 ResultActions resultActions = mvc
234234 .perform (
235- put ("/post/comment/post/ {post_id}/comment/ " , 2L )
235+ put ("/post/{post_id}/comment" , 2L )
236236 .contentType (MediaType .APPLICATION_JSON )
237237 .content ("""
238238 {
@@ -255,7 +255,7 @@ void t6() throws Exception {
255255 void t7 () throws Exception {
256256 ResultActions resultActions = mvc
257257 .perform (
258- put ("/post/comment/post/ {post_id}/comment/ " , 1L )
258+ put ("/post/{post_id}/comment" , 1L )
259259 .contentType (MediaType .APPLICATION_JSON )
260260 .content ("""
261261 {
@@ -278,7 +278,7 @@ void t7() throws Exception {
278278 void t8 () throws Exception {
279279 ResultActions resultActions = mvc
280280 .perform (
281- put ("/post/comment/post/ {post_id}/comment/ " , 1L )
281+ put ("/post/{post_id}/comment" , 1L )
282282 .contentType (MediaType .APPLICATION_JSON )
283283 .content ("""
284284 {
0 commit comments