generated from pricelees/issue-pr-template
20 lines
508 B
Java
20 lines
508 B
Java
package roomescape.reservation.domain;
|
|
|
|
import org.assertj.core.api.Assertions;
|
|
import org.junit.jupiter.api.DisplayName;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
import roomescape.system.exception.RoomEscapeException;
|
|
|
|
class ReservationTimeTest {
|
|
|
|
@Test
|
|
@DisplayName("객체 생성 시, null이 존재하면 예외를 발생한다.")
|
|
void validateConstructorParameterNull() {
|
|
|
|
// when & then
|
|
Assertions.assertThatThrownBy(() -> new ReservationTime(null))
|
|
.isInstanceOf(RoomEscapeException.class);
|
|
}
|
|
}
|