-
Notifications
You must be signed in to change notification settings - Fork 14
노승현 1차 과제 #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
노승현 1차 과제 #7
Conversation
private int teamId; | ||
|
||
private String teamName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CamelCase로 작성해주신 것 너무 좋습니다~!~
// Then | ||
List<Player> Players = PlayerRepository.findAll(); | ||
Assertions.assertThat(Players).hasSize(5); | ||
Assertions.assertThat(Players.get(0).getLine()).isEqualTo("미드"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
대상혁..
깔끔하게 잘 작성해주셨습니다. 굿굿,.
// Then | ||
Assertions.assertThat(result1).isNull(); //fail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요 부분 isNotNull()이 아닐까 싶은데, 혹시 작성하신 뒤에 테스트 클래스의 메소드 왼쪽에 초록색 삼각형 클릭해서 테스트 실행해보셨을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 일부로 틀린 케이스로 작성해보았습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아하 수업 중에 자세히 다루지 않아서, 그렇게 생각하실 수도 있겠네요!
보통은 테스트가 모두 통과되도록 작성하는 것이 맞습니다. 이유로는 여러 가지가 있습니다.
- 다른 사람이 보기에, 통과되지 않은 테스트에 대해서 현재 문제가 발생한 것인지 의도한 것인지 알수 없습니다.
- 코드 Push 후에 자동으로 배포해주는 시스템을 구축할 때, 모든 테스트에 대해서 정상적으로 통과하는지를 판단하고 보통 배포를 진행합니다.
테이블 설명
2024 LCK 서머 팀 정보(id, 팀명, 순위, 승, 승률)

LCK 선수 정보(id, 선수명, 팀id, 팀명, 라인)

선수 정보에 있는 팀 id를 foreign key로 하여 팀 정보를 요청하는 작업까지에는 어려움이 있었다.