-
Notifications
You must be signed in to change notification settings - Fork 284
[최종 테스트] 우한샘 최종 테스트 제출합니다. #96
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
Open
FelisCatusKR
wants to merge
28
commits into
woowacourse:main
Choose a base branch
from
FelisCatusKR:FelisCatusKR
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
시간 및 거리 저장용 클래스 선언
노선마다 존재하는 역들과 그 역 사이의 거리를 저장하는 구간 클래스 추가: - 역 목록이 두 개 이상으로 이루어져 있는지 검증 - 구간 목록이 한 개 이상으로 이루어져 있는지 검증 - 역 목록의 크기와 구간 목록의 크기가 1만큼 차이 나는지 검증 - 특정 색인의 역 얻어오기 - 특정 두 색인 사이의 차이 얻어오기 Section 유닛 테스트인 SectionTest 추가
구간을 저장해 둘 저장소 클래스와 하위 메소드 선언: - 저장소에 같은 노선 이름을 지닌 구간이 있는지 검증 - 저장소에 구간 추가 - 저장소에서 특정 노선 이름을 가진 구간 제거 - 저장소 비우기 유닛 테스트 추가 (SectionRepositoryTest)
상수를 Constants 클래스로 분리 같은 값들이 각종 테스트와 초기화 클래스에 반복적으로 사용되는 것을 고려하여 새로운 클래스를 생성했습니다.
Constants 내의 상수를 쓰도록 코드 수정
역/노선 저장소 내에 중복된 이름이 있는지 검증하는 기능 추가
저장소 내에 같은 이름을 지닌 역이 있는지 검증하는 메소드 추가 addStation 수정
저장소 내에 같은 이름을 지닌 노선이 있는지 검증하는 메소드 추가 addLine 수정
저장소 초기화를 위한 클래스 추가
역 저장소를 초기화하는 메소드 추가
노선 저장소를 초기화하는 메소드 추가 저장소를 모두 초기화 요청할 때 사용할 public 메소드 추가
노선 이름, 역 이름 배열, 구간 간격 리스트를 이용하여 구간을 추가하는 메소드 추가 노선 저장소로부터 노선을 가져오는 메소드 추가 역 저장소로부터 역을 가져오는 메소드 추가
ErrorMessage 열거형을 사용하여 반환하도록 지정
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
생각보다 구현 수정이 오래 걸려서 길 찾기는 건드릴 수도 없었습니다. 좀 더 빠르게 코딩 할 수 있었으면 좋았을 것이라는 아쉬움이 많이 남습니다.
그 동안 고생 많으셨습니다.