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

[점심 메뉴 추천] 박준수 미션 제출합니다. #3

Open
wants to merge 52 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
b2fbb7a
docs: 기능목록/에러처리 정의
GaBaljaintheroom Aug 30, 2023
4675817
feat: InputView inputCoachName 작성
GaBaljaintheroom Aug 30, 2023
7ce87d5
feat: OutputView 생성
GaBaljaintheroom Aug 30, 2023
18f7aa7
feat: InputValidator validateCommaContain 작성
GaBaljaintheroom Aug 30, 2023
c573db7
feat: CoachNames 생성
GaBaljaintheroom Aug 30, 2023
1c26ad8
feat: ErrorMessage 생성
GaBaljaintheroom Aug 30, 2023
f72b962
feat: ProcessMessage 생성
GaBaljaintheroom Aug 30, 2023
537bd2e
test: 코치 이름이 ','로 구분되어 입력 받지 못하면 에러가 발생
GaBaljaintheroom Aug 30, 2023
abe8685
test: CoachNameTest 작성
GaBaljaintheroom Aug 30, 2023
64cced4
docs: 코치 이름 입력
GaBaljaintheroom Aug 30, 2023
ddb9812
feat: InputView inputForbiddenMenu 작성
GaBaljaintheroom Aug 30, 2023
f7e734a
feat: OutputView printCoachesForbiddenMenu 작성
GaBaljaintheroom Aug 30, 2023
48180f9
feat: ProcessMessage INPUT_FORBIDDEN_MENU작성
GaBaljaintheroom Aug 30, 2023
9e3c809
feat: InputValidator validateForbiddenMenuCount 작성
GaBaljaintheroom Aug 30, 2023
c06ea3d
feat: ForbiddenMenu 생성
GaBaljaintheroom Aug 30, 2023
5372043
test: 못 먹는 메뉴의 개수가 최소 0개, 최대 2개가 아니면 에러가 발생
GaBaljaintheroom Aug 30, 2023
52dedf2
test: ForbiddenMenuTest 코치 별로 못 먹는 메뉴가 저장되는지 확인
GaBaljaintheroom Aug 30, 2023
f9022c2
docs: 각 코치가 못 먹는 메뉴를 입력
GaBaljaintheroom Aug 30, 2023
a1d5ef8
feat: Days 생성
GaBaljaintheroom Aug 30, 2023
e72d19d
feat: Categories 생성
GaBaljaintheroom Aug 30, 2023
3f0cf72
feat: RecommendCategory 생성
GaBaljaintheroom Aug 30, 2023
bd56796
test: 추천 카테고리가 카테고리 수 만큼 저장이 되는지 확인
GaBaljaintheroom Aug 30, 2023
1f3d65c
docs: 카테고리 생성
GaBaljaintheroom Aug 30, 2023
d632059
feat: Menus 생성
GaBaljaintheroom Aug 30, 2023
ca660ff
feat: RecommendMenu 생성
GaBaljaintheroom Aug 30, 2023
884eb93
feat: ForbiddenMenu isNotContainForbiddenMenu 작성
GaBaljaintheroom Aug 30, 2023
c639b0e
feat: RecommendCategory getCategoryCount 추가
GaBaljaintheroom Aug 30, 2023
5143eef
test: 못 먹는 음식이 없을 경우 true를 반환
GaBaljaintheroom Aug 30, 2023
8f423a8
test: 추천된 메뉴가 코치 수 만큼 저장되는지 확인
GaBaljaintheroom Aug 30, 2023
75c7754
docs: 추천
GaBaljaintheroom Aug 30, 2023
954e647
feat: main 함수 작성
GaBaljaintheroom Aug 30, 2023
286a012
feat: Categories outputCategories 작성
GaBaljaintheroom Aug 30, 2023
43150cc
feat: Days outputDays 작성
GaBaljaintheroom Aug 30, 2023
90201e0
feat: InputView printEnter 추가
GaBaljaintheroom Aug 30, 2023
695e065
feat: RecommendMenu toString 추가
GaBaljaintheroom Aug 30, 2023
49144e4
feat: MenuController 생성
GaBaljaintheroom Aug 30, 2023
aa0bc6f
feat: OutputElement 생성
GaBaljaintheroom Aug 30, 2023
1ce2c9d
feat: ProcessMessage 추가
GaBaljaintheroom Aug 30, 2023
cd3d868
feat: OutputView 추가
GaBaljaintheroom Aug 30, 2023
c70a700
refactor: Category 출력이동
GaBaljaintheroom Aug 30, 2023
1e704a3
refactor: RecommendCategory toString 추가
GaBaljaintheroom Aug 30, 2023
56740fe
refactor: Input 형식 수정
GaBaljaintheroom Aug 30, 2023
c845633
refactor: 패키지 구조 변경
GaBaljaintheroom Aug 30, 2023
a177d58
test: 추천 카테고리에 카테고리 중 일부가 저장되는지 확인
GaBaljaintheroom Aug 31, 2023
b8ddd6f
refactor: StartRecommend 수정
GaBaljaintheroom Aug 31, 2023
e4c9309
refactor: RecommendCategory curCategory 추가
GaBaljaintheroom Aug 31, 2023
21da46b
refactor: RecommendMenu createRecommendMenu 수정
GaBaljaintheroom Aug 31, 2023
85f6a99
refactor: 추천 카테고리가 카테고리 수 만큼 저장이 되는지 확인 테스트 수정
GaBaljaintheroom Aug 31, 2023
bc9278c
refactor: 상수 처리 추가
GaBaljaintheroom Aug 31, 2023
47332ca
test: 숫자에 맞는 카테고리 타입이 반환되는지 확인
GaBaljaintheroom Aug 31, 2023
29294e7
test: type에 맞는 음식들이 반환되는지 확인
GaBaljaintheroom Aug 31, 2023
8ca987e
refactor: 읽기 전용 빈 리스트로 수정
GaBaljaintheroom Aug 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: OutputElement 생성
  • Loading branch information
GaBaljaintheroom committed Aug 30, 2023
commit aa0bc6f207aa24eb87cc3caa6844e0908732773a
20 changes: 20 additions & 0 deletions src/main/java/menu/OutputElement.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package menu;

public enum OutputElement {
FIRST_ELEMENT("[ "),
MIDDLE_ELEMENT(" | "),
LAST_ELEMENT(" ]"),
NEXT_ELEMENT("\n");


private final String element;

OutputElement(String element) {
this.element = element;
}

@Override
public String toString() {
return element;
}
}