티스토리 뷰
728x90
@Test
fun `should test suspending functions`() = runBlockingTest {
assertThrows<IllegalStateException> { failing() }
}
https://github.com/junit-team/junit5/issues/1851#issuecomment-640510865
Support assertThrows() with suspending functions in Kotlin · Issue #1851 · junit-team/junit5
Often when I write a unit test that has to assert that a certain exception is thrown I use the assertThrows() method. But I find myself regularly having to test suspending functions, so I have to w...
github.com
728x90
'공부' 카테고리의 다른 글
[curl] PUT, GET (value & file) (0) | 2022.07.09 |
---|---|
[kotlin] forEach break(return@forEach) & continue(return@run) (0) | 2022.07.09 |
[linux] pushd, popd (0) | 2022.07.09 |
[git] clone, push, pull (git clone https://id:pw@github.com/**.git) (0) | 2022.07.09 |
[termux] termux-setup-storage; crontab -e; git clone https://github.com/**.git; (0) | 2022.07.09 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 책그림
- 유투브
- follower
- 테슬라 리퍼럴 코드 생성
- 테슬라 리퍼럴 코드 혜택
- 클루지
- 모델 Y 레퍼럴
- 테슬라 추천
- 김달
- 테슬라 크레딧 사용
- wlw
- Bot
- Kluge
- 팔로워 수 세기
- 메디파크 내과 전문의 의학박사 김영수
- 레퍼럴
- 테슬라 레퍼럴 적용 확인
- 테슬라 리퍼럴 코드
- 할인
- 개리마커스
- 테슬라
- 인스타그램
- COUNT
- 어떻게 능력을 보여줄 것인가?
- 테슬라 레퍼럴 코드 확인
- 연애학개론
- 테슬라 레퍼럴
- 모델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 |
글 보관함