티스토리 뷰
728x90
import static org.junit.jupiter.api.Assertions.assertThrows;
@Test
public void junit5에서_exception_테스트_1() {
Assertions.assertThrows(RuntimeException.class, () -> {
DoSomething.func();
});
}
https://covenant.tistory.com/256
완벽정리! Junit5로 예외 테스트하는 방법
환경 구성 testImplementation 'org.springframework.boot:spring-boot-starter-test' testRuntimeClasspath - Runtime classpath of source set 'test'. +--- org.springframework.boot:spring-boot-starter-web -> 2.5.6 \--- org.springframework.boot:spring-boot-sta
covenant.tistory.com
728x90
'공부' 카테고리의 다른 글
[prometheus] alertmanager (0) | 2023.09.22 |
---|---|
[java] for vs stream vs parallelStrem (0) | 2023.09.20 |
[python] pydantic BaseModel.dict (0) | 2023.09.20 |
[naming] kebab-case, camelCase, PascalCase, snake_case (0) | 2023.09.20 |
[spring] @PathVariable List<Integer> ids (0) | 2023.09.19 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Kluge
- 개리마커스
- 김달
- 테슬라 레퍼럴 코드 확인
- 유투브
- 인스타그램
- 테슬라 리퍼럴 코드 생성
- 연애학개론
- 테슬라 추천
- 클루지
- follower
- wlw
- 테슬라 리퍼럴 코드 혜택
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 레퍼럴 적용 확인
- 모델y
- 팔로워 수 세기
- 할인
- 책그림
- 테슬라 크레딧 사용
- COUNT
- 테슬라 레퍼럴
- Bot
- 테슬라
- 레퍼럴
- 테슬라 리퍼럴 코드
- 모델 Y 레퍼럴
- 어떻게 능력을 보여줄 것인가?
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함