From 019ed6f9e551cb6b2f290caf12f353f70398c83f Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Sun, 19 Sep 2021 04:15:41 +0000 Subject: [PATCH] Fix compile --- .../shared/src/test/scala/org/http4s/crypto/HashSuite.scala | 2 +- .../shared/src/test/scala/org/http4s/crypto/HmacSuite.scala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/shared/src/test/scala/org/http4s/crypto/HashSuite.scala b/crypto/shared/src/test/scala/org/http4s/crypto/HashSuite.scala index 2c50dbe..838224f 100644 --- a/crypto/shared/src/test/scala/org/http4s/crypto/HashSuite.scala +++ b/crypto/shared/src/test/scala/org/http4s/crypto/HashSuite.scala @@ -26,7 +26,7 @@ class HashSuite extends CatsEffectSuite { val data = ByteVector.encodeAscii("The quick brown fox jumps over the lazy dog").toOption.get - def testHash(algorithm: HashAlgorithm, expect: String) = + final def testHash(algorithm: HashAlgorithm, expect: String) = test(algorithm.toString) { assertIO( Hash[IO].digest(algorithm, data), diff --git a/crypto/shared/src/test/scala/org/http4s/crypto/HmacSuite.scala b/crypto/shared/src/test/scala/org/http4s/crypto/HmacSuite.scala index 4383731..faa43ee 100644 --- a/crypto/shared/src/test/scala/org/http4s/crypto/HmacSuite.scala +++ b/crypto/shared/src/test/scala/org/http4s/crypto/HmacSuite.scala @@ -27,7 +27,7 @@ class HmacSuite extends CatsEffectSuite { val key = ByteVector.encodeAscii("key").toOption.get val data = ByteVector.encodeAscii("The quick brown fox jumps over the lazy dog").toOption.get - def testHash(algorithm: HmacAlgorithm, expect: String) = + final def testHash(algorithm: HmacAlgorithm, expect: String) = test(algorithm.toString) { assertIO( Hmac[IO].digest(SecretKeySpec(key, algorithm), data), @@ -41,7 +41,7 @@ class HmacSuite extends CatsEffectSuite { SHA512, "b42af09057bac1e2d41708e48a902e09b5ff7f12ab428a4fe86653c73dd248fb82f948a549f7b791a5b41915ee4d1ec3935357e4e2317250d0372afa2ebeeb3a") - def testGenerateKey(algorithm: HmacAlgorithm) = + final def testGenerateKey(algorithm: HmacAlgorithm) = test(s"generate key for ${algorithm}") { Hmac[IO].generateKey(algorithm).map { case SecretKeySpec(key, keyAlgorithm) =>