Rewrites XdripSourcePluginTest with matchers

Issue #2745
This commit is contained in:
Ryan Haining 2023-09-23 18:07:10 -07:00
parent 37ddb7bed5
commit 352d38acf5

View file

@ -1,9 +1,9 @@
package info.nightscout.source package info.nightscout.source
import app.aaps.shared.tests.TestBase import app.aaps.shared.tests.TestBase
import com.google.common.truth.Truth.assertThat
import dagger.android.AndroidInjector import dagger.android.AndroidInjector
import info.nightscout.shared.interfaces.ResourceHelper import info.nightscout.shared.interfaces.ResourceHelper
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test import org.junit.jupiter.api.Test
import org.mockito.Mock import org.mockito.Mock
@ -20,6 +20,6 @@ class XdripSourcePluginTest : TestBase() {
} }
@Test fun advancedFilteringSupported() { @Test fun advancedFilteringSupported() {
Assertions.assertEquals(false, xdripSourcePlugin.advancedFilteringSupported()) assertThat(xdripSourcePlugin.advancedFilteringSupported()).isFalse()
} }
} }