Rewrites DanaPumpTest with matchers

Issue #2745
This commit is contained in:
Ryan Haining 2023-09-08 19:39:01 -07:00
parent 14262b5176
commit 5a19329889

View file

@ -1,8 +1,8 @@
package info.nightscout.pump.dana
import com.google.common.truth.Truth.assertThat
import info.nightscout.interfaces.profile.Instantiator
import info.nightscout.sharedtests.TestBaseWithProfile
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.mockito.Mock
@ -21,6 +21,6 @@ class DanaPumpTest : TestBaseWithProfile() {
@Test
fun detectDanaRS() {
sut.hwModel = 0x05
Assertions.assertTrue(sut.modelFriendlyName().contains("DanaRS"))
assertThat(sut.modelFriendlyName()).contains("DanaRS")
}
}
}