Skip to content

Commit d34ed25

Browse files
committed
refactor(MissionStepTest, data.sql): 테스트 코드 변경(시간 데이터 수동 생성으로 인한 id 값 불일치, 테스트 코드용 시간(15:30) 추가)
1 parent 575e99a commit d34ed25

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/resources/data.sql

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ VALUES ('10:00'),
55
('14:30'),
66
('16:00'),
77
('17:30'),
8+
('15:40'),
89
('19:00'),
910
('20:30');

src/test/java/roomescape/MissionStepTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,16 @@ public class MissionStepTest {
170170
.when().post("/times")
171171
.then().log().all()
172172
.statusCode(201)
173-
.header("Location", "/times/1");
173+
.header("Location", "/times/10");
174174

175175
RestAssured.given().log().all()
176176
.when().get("/times")
177177
.then().log().all()
178178
.statusCode(200)
179-
.body("size()", is(1));
179+
.body("size()", is(10));
180180

181181
RestAssured.given().log().all()
182-
.when().delete("/times/1")
182+
.when().delete("/times/10")
183183
.then().log().all()
184184
.statusCode(204);
185185
}

0 commit comments

Comments
 (0)