nmnnhlba
@xorwnsnmnn6292
Reviews Written
1
Average Rating
5.0
Posts
Q&A
expectedException ์ง๋ฌธ
์กฐ๊ธ ๋ ํ์ธํด๋ณด๋, Junit5์์ ํ ์คํธ๋ฅผ ์ํํ ๋๋ ์๋์ ๊ฐ์ด assertThrows ๋ฉ์๋๋ฅผ ์ฌ์ฉํ์ฌ ๋ฆฌํด๋๋ ๊ฐ์ Exception ์ธ์คํด์ค๋ก ๋ฐ์ ํ assertThat ๋ฉ์๋๋ฅผ ์ด์ฉํ์ฌ ์์ธ๋ฉ์์ง ํ์ธ์ ํด์ฃผ์๋ฉด ๋ ๊ฒ ๊ฐ๋ค์. ๋์์ด ๋ ์ ์์๊ฒ ๊ฐ์ ๊ณต์ ํด๋๋ฆฝ๋๋ค. @Test public void findByUsernameFail() { String email = "random@email.com"; Exception exception = assertThrows(UsernameNotFoundException.class, () -> { accountService.loadUserByUsername(email); }); assertThat(exception.getMessage()).contains(email); }
- 0
- 3
- 392
Q&A
๋ก๊ทธ์์ ๊ธฐ๋ฅ ๊ด๋ จ ๋ฌธ์
์ ๋์ํ๋ค์. ๊ฐ์ฌํฉ๋๋ค~
- 0
- 2
- 212
Q&A
ร TypeError: Cannot read property 'keyword' of undefined
์๋ ค์ฃผ์ ๋๋ก store.js์ search ๊ด๋ จ Reducer์ Saga๋ฅผ ์ถ๊ฐํ๋ ์ ์์ ์ผ๋ก ๋์ํ๋ค์. ๋์ ์ฃผ์ ์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
- 0
- 3
- 334
Q&A
ร TypeError: Cannot read property 'keyword' of undefined
์ ๊ฐ ๊ฐ์๋ฅผ ๋ณด๋ฉด์ ๋ฐ๋ผํ๋ ์ฝ๋ ๊ณต์ ํด๋๋ฆฝ๋๋ค. ํน์ฌ๋ ์๋ชป๋ ๋ถ๋ถ์ด ์๋ค๋ฉด ์๋ ค์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค. https://drive.google.com/file/d/1HS673r8UD7AOosv5Y-xuSm5ZamclBHmO/view?usp=sharing
- 0
- 3
- 334




