Spring DI ์ ํ๋ฆฌ์ผ์ด์
Spring-Testํ
์คํธ ํด๋์ค ์์ฑํ๊ธฐ
https://hyejin.tistory.com/243?category=1022293 [Spring] DI ์ ํ๋ฆฌ์ผ์ด์
Junit ํ
์คํธ ํด๋์ค ์์ฑํ๊ธฐ 1. Junit Junit์ ๋จ์ํ
์คํธ ํ๋ ์์ํฌ์ด๋ค. Junit์ @Test ๋ฉ์๋๊ฐ ๊ฐ๊ฐ ํธ์ถ๋ ๋ ๋ง๋ค ์๋ก์ด ์ธ์คํด์ค๋ฅผ ์์ฑํ์ฌ ๋
๋ฆฝ์ ์ธ ํ
์คํธ๊ฐ ์ด๋ฃจ์ด์ง๋๋ก ํ๋ค. โ ๋จ์ํ
์คํธ๋? ๋ชจ๋ ํจ์์ ๋ฉ์๋ hyejin.tistory.com ์ ๊ธ์ Junit ํ
์คํธ ํด๋์ค๋ฅผ ์์ฑํด์ ์คํํด๋ดค๋ค. ์ด๋ฒ์๋ ๋ ๋์๊ฐ Sprint-Test๋ฅผ ์ฌ์ฉํด DI ์ ํ๋ฆฌ์ผ์ด์
ํ
์คํธ ํด๋์ค๋ฅผ ์์ฑํ ๊ฒ์ด๋ค. 1. Sprint-test ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์นํ๊ธฐ https://mvnrepository.com/artifact/org.springframework/spring-..
2021.11.09