Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Mac
- web.xml
- IntelliJ
- tomcat
- copy-dependencies
- context
- Windows 10
- port
- lsof
- 네트워크
- netsh
- GIT
- ssh
- profile
- grep
- Windows
- DB 도메인
- find
- bash
- 공통표준용어
- import
- VirtualBox
- resource
- 단축키
- maVen
- Quartz
- Eclipse
- Source
- JavaScript
- xargs
Archives
- Today
- Total
develog
[junit5] mockito 본문
@ExtendWith(MockitoExtension.class)
class UserServiceTest {
@Mock
UserRepository userRepository;
@InjectMocks
UserService userService;
@Test
void test_00() throws Exception {
assertThat(userService).isNotNull();
assertThat(userRepository).isNotNull();
}
}
'Dev > junit' 카테고리의 다른 글
[junit5] @DisplayName 제대로 표시안될 때 (0) | 2020.08.04 |
---|---|
[junit] gradle junit5 (0) | 2020.04.21 |
[junit5] controller test @WebMvcTest (0) | 2020.03.02 |
[junit5] controller test @SpringBootTest (0) | 2020.02.29 |
[Junit] Test Assertion (0) | 2019.12.23 |
Comments