Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
안녕하세요 step2 학습 테스트 실습 완료했습니다.
질문이 있습니다!
테스트 메서드에서의 public의 의미가 궁금합니다!
또한 TDD GREEN단계에서 메서드 구현 시
분기별 RETURN 값이 아닌 기본 반환값은 어떤 식으로 구현해놓는게 좋을까요?
제 생각으로는 return throw new 예외 ("구현 예정") 처리를 하는 것을 생각했는데요
다른 방식이 있는지 궁급합니다!
ex)
public static int splitAndSum(String text) {
if(StringUtils.isBlank(text)) {
return 0;
}
return 0; <<-- 이부분 입니다!
}