From dc5ab0ca0828f612fd2e2ad2a36b908e119b6877 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 21 Jun 2021 15:17:26 +0800 Subject: [PATCH] test: fix BookImporterTest.kt --- .../org/gotson/komga/domain/service/BookImporterTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/komga/src/test/kotlin/org/gotson/komga/domain/service/BookImporterTest.kt b/komga/src/test/kotlin/org/gotson/komga/domain/service/BookImporterTest.kt index 288b06336..0683a4882 100644 --- a/komga/src/test/kotlin/org/gotson/komga/domain/service/BookImporterTest.kt +++ b/komga/src/test/kotlin/org/gotson/komga/domain/service/BookImporterTest.kt @@ -89,7 +89,7 @@ class BookImporterTest( } // then - assertThat(thrown).isInstanceOf(FileNotFoundException::class.java) + assertThat(thrown).hasCauseInstanceOf(FileNotFoundException::class.java) } @Test @@ -109,7 +109,7 @@ class BookImporterTest( } // then - assertThat(thrown).isInstanceOf(FileAlreadyExistsException::class.java) + assertThat(thrown).hasCauseInstanceOf(FileAlreadyExistsException::class.java) } } @@ -130,7 +130,7 @@ class BookImporterTest( } // then - assertThat(thrown).isInstanceOf(FileAlreadyExistsException::class.java) + assertThat(thrown).hasCauseInstanceOf(FileAlreadyExistsException::class.java) } }