-
Notifications
You must be signed in to change notification settings - Fork 301
๐ 2๋จ๊ณ - ์๊ฐ์ ์ฒญ(๋๋ฉ์ธ ๋ชจ๋ธ) #796
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: eundms
Are you sure you want to change the base?
Conversation
Eundms
commented
Dec 2, 2025
- Session ๋ด ์ธ์คํด์ค ๋ณ์๋ฅผ ์ค์ด๋ค๊ฐ ๋ ๋ณต์กํด์ง๋ ๊ฒ ๊ฐ์ ์ผ๋จ ๋ฆฌ๋ทฐ ์์ฒญ ๋๋ฆฝ๋๋ค.
- ๋ ์ค์ผ ์ ์๋ ๋ฐฉ์์ ์ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค ใ
javajigi
left a comment
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.
์ ์ฒด์ ์ธ ๊ฐ์ฒด ์ค๊ณ, ๋จ์ ํ
์คํธ ์ฝ๋ ๊ตฌํ ๐
๋๋ฉ์ธ ๊ฐ์ฒด๋ ์์ ๋จ์๋ก ๋ถ๋ฆฌํ๊ณ , Session์ ๋ณต์ก๋๋ฅผ ๋ฎ์ถ๊ธฐ ์ํด ๋
ธ๋ ฅํ๋ค๋ณด๋ ๋ณต์ก๋๊ฐ ๋ฎ๊ฒ ์ ๊ตฌํํ๋ค์. ๐
ํผ๋๋ฐฑํ ๋ถ๋ถ์ด ๋ง์ง๋ ์์์ง๋ง ํ๋ฒ ๊ณ ๋ฏผํด ๋ดค์ผ๋ฉด ํ๋ ๋ฐ๋์ผ๋ก ํผ๋๋ฐฑ ๋จ๊ฒจ๋ด
๋๋ค.
๊ณ ๋ฏผํด๋ณด๊ณ ๋ฐ์ํ ๋ถ๋ถ ๋ฐ์ํ๊ณ ๋น ๋ฅด๊ฒ ๋ค์ ๋จ๊ณ ๋์ด๊ฐ์์ฃ .
src/main/java/nextstep/courses/domain/image/SessionImageDimension.java
Outdated
Show resolved
Hide resolved
| private final SessionState state; | ||
| private final SessionType type; |
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.
์๊ฐ ์ ์ฒญ๊ณผ ๊ด๋ จํด ์ด ๋ ๊ฐ์ฒด(state, type)๊ฐ ๊ด์ฌํ๊ณ ์๋๋ฐ ์ด ๋์ Enrollment์ ๊ฐ์ ๊ฐ์ฒด๋ก ๋ถ๋ฆฌํด ๋ณด๋ ๊ฒ์ ์ด๋จ๊น?
์๋๋ฉด ์๊ฐ ์ ์ฒญ๊ณผ ๊ด๋ จํ ๋ชจ๋ ๊ฐ์ ๋ณ๋์ ๊ฐ์ฒด๋ก ๋ถ๋ฆฌํด ๊ตฌํํด ๋ณด๋ ๊ฒ์ ์ด๋จ๊น?
|
|
||
| @Test | ||
| void ๋ชจ์ง์ค์ผ๋_์๊ฐ์ ์ฒญ_๊ฐ๋ฅ() { | ||
| Session session = new Session(new Course("TDD", 1L), TERM, COVER_IMAGE, "2025-01-01", "2025-01-31"); |
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.
Session ๊ฐ์ฒด์ ๊ฐ์ด ์ธ์คํด์ค ๋ณ์๊ฐ ๋ง์ ๊ฐ์ฒด๋ฅผ ํ
์คํธํ๋ ค๋ฉด ๊ฐ์ฒด๋ฅผ ์์ฑํ๋๋ฐ ์ด๋ ค์์ด ์๋ค.
์ค๋ณต ์ฝ๋ ๋ํ ๋ง์ด ๋ฐ์ํด Session์ ์์ฑํ ๋ ์์ฑ์์ ์ธ์๊ฐ ๋ณ๊ฒฝ๋๋ ๊ฒฝ์ฐ ๋ณ๊ฒฝํ ๋ถ๋ถ์ด ๋ง์์ง๋ค.
https://www.arhohuttunen.com/test-data-builders/ ๋ฌธ์ ์ฐธ๊ณ ํด Session๊ณผ ๊ฐ์ด ๋ณต์กํ ๊ฐ์ฒด์ ํ
์คํธ ๋ฐ์ดํฐ๋ฅผ ์์ฑํ ๋ ์ด๋ค ๋ฐฉ๋ฒ์ ์ฌ์ฉํ ๊ฒ์ธ์ง ์ ํํด ๋ณด๋ฉด ์ข๊ฒ ๋ค.
์ด๋ฒ ๊ธฐํ์ ๋ด๊ฐ ์ ํธํ๋ ๋ฐฉ๋ฒ์ ์ ์ฉํด ๋ณด๊ณ ์์ผ๋ก๋ ์ญ์ฑ ํ์ฉํ๋ ๋ฐฉ์์ด๋ฉด ์ข๊ฒ ๋ค.