Skip to content

Commit b5f5bf4

Browse files
committed
refactor(MissionStepTest): [9단계] 테스트 코드 '구단계' 추가(통과)
1 parent 905f8f1 commit b5f5bf4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/java/roomescape/MissionStepTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,19 @@ public class MissionStepTest {
181181
.then().log().all()
182182
.statusCode(204);
183183
}
184+
185+
@Test
186+
void 구단계() {
187+
Map<String, String> reservation = new HashMap<>();
188+
reservation.put("name", "브라운");
189+
reservation.put("date", "2023-08-05");
190+
reservation.put("time", "10:00");
191+
192+
RestAssured.given().log().all()
193+
.contentType(ContentType.JSON)
194+
.body(reservation)
195+
.when().post("/reservations")
196+
.then().log().all()
197+
.statusCode(400);
198+
}
184199
}

0 commit comments

Comments
 (0)