Merge pull request #2827 from ryanhaining/assertthat_plugins_source

Rewrites plugins/source/ with matchers
This commit is contained in:
Milos Kozak 2023-09-24 10:34:12 +02:00 committed by GitHub
commit 37be6bb2c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 12 deletions

View file

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

View file

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

View file

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

View file

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