Skip to content
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

[5단계] 자동차 리팩토링 리뷰 부탁듣립니다 #2083

Merged
merged 1 commit into from Mar 16, 2021

Conversation

loop-study
Copy link

안녕하세요 박현철입니다.
마지막 리팩토링 리뷰 부탁드립니다.

기존 Round 를 RoundRecords 로 클래스명 변경했고,
새로운 Round 를 추가하여 Round 관련된 진행상황을 관리하게 변경헀습니다.
그 외에 distance, name 객체화 시켰습니다.

확인 부탁드립니다
감사합니다!

2021. 03. 15
리팩토링 제출합니다.
1) 피드백 반영
2) 그외 int distance, String name 객체
3) 객체화에 따른 테스트 추가
4) 리드미 내용 추가

Resolves : loop-study
See also : changgunyee
Copy link

@changgunyee changgunyee left a comment

Choose a reason for hiding this comment

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

안녕하세요. 현철님 😄

이전 단계에서 고생한만큼 이미 구조가 잘 잡혀있어 요구사항 반영이 간단했던 것 같군요.
요구사항과 피드백 다 잘 반영해주셨습니다. 🔥

벌써 끝이라는게 아쉽군요 😢
교육 과정의 미션들을 즐기면서 수행할 수 있으셨으면 좋겠습니다.

이만 머지하도록 하겠습니다.
이번 미션동안 고생많으셨습니다.
감사합니다 🕺

beforeRound.isGameEnd();

//then
assertThat(beforeRound).isEqualTo(afterRound);

Choose a reason for hiding this comment

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

객체 간 비교 👍

import java.util.List;
import java.util.stream.Collectors;

public class RoundRecord {

Choose a reason for hiding this comment

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

좀 더 네이밍이 좋아졌군요.... ⚡

}

@ParameterizedTest
@ValueSource(strings = {"povi123", "1231234", "12312345"})

Choose a reason for hiding this comment

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

다음 미션부터는 경계값까지 포함하여 테스트 부탁드립니다!

Copy link
Author

Choose a reason for hiding this comment

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

테스트에 더 신경쓰겠습니다!


import java.util.Objects;

public class Distance {

Choose a reason for hiding this comment

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

원시값 wrapping 👍


import new_racingcar.constant.MsgConstants;

public class Name {

Choose a reason for hiding this comment

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

요구사항 잘 반영해주셨습니다~

@changgunyee changgunyee merged commit 8a548fb into next-step:loop-study Mar 16, 2021
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.

None yet

2 participants