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.
๐ชต ์์ ๋ธ๋์น
test / #23
โ ํ ์คํธ ๋ชฉ๋ก
์ก๊ธ ๋ฐ ์ก๊ธ ๊ฒฌ์ ์ ๊ด๋ จ(Remittance Controller Test)
ํ์ ๊ด๋ จ(Member Controller Test)
๐ ๋ฒ๊ทธ ์ด์
๐ ๋ฒ๊ทธ ์ด์ ํด๊ฒฐ
[#28]
Spring Context์์ด ํ ์คํธ๋ฅผ ์งํํ๊ธฐ๋๋ฌธ์ SecurityContext๊ฐ์ฒด๋ฅผ ๋ชจํนํ๊ณ
์ ์ ์ ์ ๋ณด๋ฅผ ๋ด๊ธฐ์ํด Authentication ๊ฐ์ฒด์ GrantedAuthority ๊ฐ์ฒด๋ฅผ Mocking ํฉ๋๋ค.
Mocking๋ SecurityContext๊ฐ์ฒด์์ getAuthentication() ํธ์ถํ๋ฉด ๋ชจํน๋ Authentication ๋ฆฌํดํ๋๋ก ์ค์ ํ์ต๋๋ค.
[#29]
์์ธ์ builderํํ๋ก ์ ์ธํ dto๊ฐ์ฒด๋ฅผ json์ผ๋ก ๋ณํ ํ์ง ๋ชปํ์ฌ ์๊ธฐ๋ ์ค๋ฅ ์์ต๋๋ค.
์ด์ ๋ ์์ง๊น์ง ์ฐพ๋ ์ค ์ด๊ณ @DaTa๋ก ๋ณ๊ฒฝํ๊ณ setํจ์๋ก ๊ฒฌ์ ์์์ด๋ ํ ์คํธ ์ผ์ด์ค๋ฅผ ์ธํ ํ Gson๊ฐ์ฒด์ json๋ณํ ๋ฉ์๋ ํธ์ถํ์๋๋ ์ฑ๊ณตํ์์ต๋๋ค.