Rewrites SignatureVerifierPluginTest with matchers

Issue #2745
This commit is contained in:
Ryan Haining 2023-09-23 17:50:05 -07:00
parent 86f805add8
commit 304da3c7c4

View file

@ -1,7 +1,7 @@
package info.nightscout.plugins.constraints.signatureVerifier
import app.aaps.shared.tests.TestBase
import org.junit.jupiter.api.Assertions
import com.google.common.truth.Truth.assertThat
import org.junit.jupiter.api.Test
class SignatureVerifierPluginTest : TestBase() {
@ -25,6 +25,6 @@ class SignatureVerifierPluginTest : TestBase() {
fun singleCharUnMapTest() {
@Suppress("SpellCheckingInspection") val key = "2ΙšÄΠΒϨÒÇeЄtЄЗž-*Ж*ZcHijЊÄœ<|x\"Ε"
val unmapped = singleCharUnMap(key)
Assertions.assertEquals("32:99:61:C4:A0:92:E8:D2:C7:65:04:74:04:17:7E:2D:2A:16:2A:5A:63:48:69:6A:0A:C4:53:3C:7C:78:22:95", unmapped)
assertThat(unmapped).isEqualTo("32:99:61:C4:A0:92:E8:D2:C7:65:04:74:04:17:7E:2D:2A:16:2A:5A:63:48:69:6A:0A:C4:53:3C:7C:78:22:95")
}
}
}