From 2d270d5dd95b704484205e29ec35a88861996999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Brychta?= Date: Tue, 1 Oct 2024 17:26:10 +0100 Subject: [PATCH] Fixed failing bag verifier test --- .../bag_verifier/fixity/FixityCheckerTagsTestCases.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bag_verifier/src/test/scala/weco/storage_service/bag_verifier/fixity/FixityCheckerTagsTestCases.scala b/bag_verifier/src/test/scala/weco/storage_service/bag_verifier/fixity/FixityCheckerTagsTestCases.scala index 04918d530b..cf8177c616 100644 --- a/bag_verifier/src/test/scala/weco/storage_service/bag_verifier/fixity/FixityCheckerTagsTestCases.scala +++ b/bag_verifier/src/test/scala/weco/storage_service/bag_verifier/fixity/FixityCheckerTagsTestCases.scala @@ -67,7 +67,7 @@ trait FixityCheckerTagsTestCases[BagLocation <: Location, BagPrefix <: Prefix[ ) withStreamReader { streamReader => - val spyReader: StreamReaderImpl = Mockito.spy(streamReader) + val spyReader: StreamReaderImpl = Mockito.spy[StreamReaderImpl](streamReader) withFixityChecker(spyReader) { fixityChecker => fixityChecker.check(expectedFileFixity) shouldBe a[ @@ -108,7 +108,7 @@ trait FixityCheckerTagsTestCases[BagLocation <: Location, BagPrefix <: Prefix[ ) withStreamReader { streamReader => - val spyReader: StreamReaderImpl = Mockito.spy(streamReader) + val spyReader: StreamReaderImpl = Mockito.spy[StreamReaderImpl](streamReader) withFixityChecker(spyReader) { fixityChecker => fixityChecker.check(expectedFileFixity) shouldBe a[ @@ -152,7 +152,7 @@ trait FixityCheckerTagsTestCases[BagLocation <: Location, BagPrefix <: Prefix[ ) withStreamReader { streamReader => - val spyReadable: StreamReaderImpl = Mockito.spy(streamReader) + val spyReadable: StreamReaderImpl = Mockito.spy[StreamReaderImpl](streamReader) withFixityChecker(spyReadable) { fixityChecker => fixityChecker.check(expectedFileFixity) shouldBe a[