Skip to content

Commit a6a4c96

Browse files
committed
Use should-Matchers
1 parent 5afe02d commit a6a4c96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webauthn-server-attestation/src/test/scala/com/yubico/webauthn/attestation/CertificateUtilSpec.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import org.bouncycastle.asn1.DEROctetString
66
import org.bouncycastle.asn1.x500.X500Name
77
import org.junit.runner.RunWith
88
import org.scalatest.funspec.AnyFunSpec
9-
import org.scalatest.matchers.should.Matchers.convertToAnyShouldWrapper
9+
import org.scalatest.matchers.should.Matchers
1010
import org.scalatestplus.junit.JUnitRunner
1111

1212
import java.security.cert.X509Certificate
1313

1414
@RunWith(classOf[JUnitRunner])
15-
class CertificateUtilSpec extends AnyFunSpec {
15+
class CertificateUtilSpec extends AnyFunSpec with Matchers {
1616
describe("parseFidoSerNumExtension") {
1717
val idFidoGenCeSernum = "1.3.6.1.4.1.45724.1.1.2"
1818
it("should correctly parse the serial number from a valid certificate with the id-fido-gen-ce-sernum extension.") {
@@ -36,7 +36,7 @@ class CertificateUtilSpec extends AnyFunSpec {
3636
.parseFidoSerNumExtension(goodCert)
3737
.get
3838
)
39-
result.shouldEqual(ByteArray.fromHex("00010203"));
39+
result should equal(ByteArray.fromHex("00010203"))
4040
}
4141

4242
}

0 commit comments

Comments
 (0)