test: fix BookImporterTest.kt

This commit is contained in:
Gauthier Roebroeck 2021-06-21 15:17:26 +08:00
parent a707fd3594
commit dc5ab0ca08

View file

@ -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)
}
}