Skip to content

Conversation

@mintjordy
Copy link
Contributor

No description provided.

Comment on lines +44 to +48
void create_exception_when_balls_size_is_invalid() {
NumberBall firstNumber = NumberBall.of(1);
NumberBall secondNumber = NumberBall.of(2);
assertThatThrownBy(() -> new NumberBalls(list(firstNumber, secondNumber)))
.isInstanceOf(IllegalArgumentException.class);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

예외 클래스를 확인할때는 의도한 예외가 생성되었는지 정확히 확인하기 위해 예외 메시지를 확인하는 과정도 포함시킨다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant