์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- Dialog
- Android Studio
- IOC
- ๊ฐ์ฒด์งํฅํ๋ก๊ทธ๋๋ฐ
- datepicker
- ๊ธฐ์ด100์
- swagger
- fontstyle
- uri
- http method
- OpenAPI
- URN
- menutab
- 2024-08-20
- udp
- Python
- reflection
- tcp
- ์ด๋ ธํ ์ด์
- di
- Kotlin
- ํ๋ IT&E
- 2024-08-21
- ์ฑ์ฉํ์ ํ
- OOP
- ์ฝ๋์
- url
- FACTORY
- Factory Method Pattern
- AndroidStudio
๋ชฉ๋ก๐ชTEST Code (2)
dingdong coding

ํ ์คํธ ํ์์ฑ์๋ฌ๊ฐ ๋ ๋๋ ๊ฒฝ์ฐ โ ํ๊ท ํ ์คํธ ์ ์ง๋ณด์๋ฅผ ํด์ผํ๋ ๊ฒฝ์ฐ ๋ณต์กํ ์ฝ๋๋ฅผ ๋ง์ด ๋ฐ๊ฟ์ผ ํ๋ ๊ฒฝ์ฐimport ๋ฅผ ๋ง์ด ํ๋ ์ํฅ๋๊ฐ ๋์ ์ฝ๋ โญ ํ ์คํธ๋ ํํํ ์ถ๊ฐํ๊ณ , ์ ๋ง ๋์์ด ๋๋ ํ ์คํธ๋ฅผ ํ์. ๋น์ฐํ๊ฑฐ๋ ํ ์คํธ ํ์ง ๋ง์ โญ ํ ์คํธ ์ข ๋ฅ์ ๋: ํจ์๋ฅผ ํ ์คํธ ํจํตํฉE2E์ค์น npm i jest -Dnpm i ts-jest @types/jest -Dnpm i babel-jest @babel/corenpm i cross-env // ์๋์ฐ ํธํ์ฉ ํจํค์ง ํ ์คํธ ์์ ๊ด๋ จ ๋ช ๋ น์ดnpx ts-jest config:initnpx cross-env NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" npx jest Visual Studio C..
spring-boot-starter-web์ ์ ํํ๋ค๋ฉด ์๋์ผ๋ก spring-boot-starter-test ์์กด์ฑ์ด ์ถ๊ฐ๋์ด์์ต๋๋ค. spring-boot-starter์ junit5๊ฐ ์์ด ๋ฐ๋ก junit5๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. build.gradle > dependecies testImplementation 'org.springframework.boot:spring-boot-starter-test' RuntimeException์ด ๋ฐ์ํ๋ ๋ฉ์๋ public class DoSomething { public static void func() { throw new RuntimeException("some exception message..."); } } 1. assertThrows Assertions..