Rewrites DateTimeUtilUTest with matchers

Issue #2745
This commit is contained in:
Ryan Haining 2023-09-20 22:48:34 -07:00
parent 0355a58d47
commit 84138eba33

View file

@ -1,7 +1,7 @@
package info.nightscout.core.pump.common.utils package info.nightscout.core.pump.common.utils
import com.google.common.truth.Truth.assertThat
import info.nightscout.core.utils.DateTimeUtil import info.nightscout.core.utils.DateTimeUtil
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test import org.junit.jupiter.api.Test
internal class DateTimeUtilUTest { internal class DateTimeUtilUTest {
@ -10,6 +10,6 @@ internal class DateTimeUtilUTest {
val dt1 = 20191001182301L val dt1 = 20191001182301L
val dt2 = 20191001192805L val dt2 = 20191001192805L
val aTechDateDifferenceAsMinutes = DateTimeUtil.getATechDateDifferenceAsMinutes(dt1, dt2) val aTechDateDifferenceAsMinutes = DateTimeUtil.getATechDateDifferenceAsMinutes(dt1, dt2)
Assertions.assertEquals(65, aTechDateDifferenceAsMinutes) assertThat(aTechDateDifferenceAsMinutes).isEqualTo(65)
} }
} }