JUnit๊ณผ assert์ ๋ค์ํ ํ์ฉ๋ฒ๋ค
โ ๊ธฐ๋ณธ์ ์ธ @BeforeEach > @Test > @AfterEach ์์ ์ฝ๋์ํ ํ๋ฆ โ assertThat().isEqualTo() (๋ฌผ๋ก @Test ๋ฉ์๋๊ฐ ์ฌ๋ฌ๊ฐ๋ผ๋ฉด, ๊ฐ @Test ๋ฉ์๋ ์ ํ๋ก @Before/AfterEach ๋ฉ์๋๊ฐ ์ค๋ณต ์ํ๋จ) public class CalculatorTest { StringCalculator stringCalculator; @BeforeEach void setUp() { stringCalculator = new StringCalculator(); } @Test void ๋ณตํฉ_๊ณ์ฐ() { assertThat(stringCalculator.calculate("5 * 2 + 2")).isEqualTo(12); assertThat(stringCalculato..
General, Java
2019. 9. 14. 14:01
๊ณต์ง์ฌํญ
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
- Total
- Today
- Yesterday
TAG
- ํด์ธ์ฌํ
- dfs
- brute-force
- javascript
- Stack
- mysql
- JPA
- socket
- FRAGMENT
- git
- queue
- Java
- Data Structure
- bfs
- ํ๋ก๊ทธ๋๋จธ์ค
- Vo
- Android Studio
- ๊ฐ๋ฐ์
- ์นํดํน
- ํ๊ณ
- C
- reversing
- OneToMany
- webhacking.kr
- sort
- Android
- ์ฐ์ํ ํ ํฌ์ฝ์ค
- Algorithm
- graph
- ๋ฆฌ๋ฒ์ฑ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
๊ธ ๋ณด๊ดํจ