test: fix parameterized test

This commit is contained in:
Gauthier Roebroeck 2025-03-11 13:24:34 +08:00
parent 01ef2b056f
commit 62d193db38

View file

@ -66,7 +66,7 @@ class BookAnalyzerTest(
], ],
) )
fun `given rar4 solid or encrypted archive when analyzing then media status is UNSUPPORTED`(fileName: String) { fun `given rar4 solid or encrypted archive when analyzing then media status is UNSUPPORTED`(fileName: String) {
val file = ClassPathResource("archives/rar4-solid.rar") val file = ClassPathResource("archives/$fileName")
val book = Book("book", file.url, LocalDateTime.now()) val book = Book("book", file.url, LocalDateTime.now())
val media = bookAnalyzer.analyze(book, false) val media = bookAnalyzer.analyze(book, false)