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
- ์ฐ์ํ ํ ํฌ์ฝ์ค
- graph
- FRAGMENT
- git
- reversing
- Data Structure
- Algorithm
- ๊ฐ๋ฐ์
- ์นํดํน
- ํ๊ณ
- Android Studio
- Vo
- Java
- brute-force
- Stack
- dfs
- bfs
- Android
- queue
- OneToMany
- sort
- webhacking.kr
- JPA
- C
- ๋ฆฌ๋ฒ์ฑ
- mysql
- socket
- ํ๋ก๊ทธ๋๋จธ์ค
- ํด์ธ์ฌํ
- javascript
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
๊ธ ๋ณด๊ดํจ