Merge pull request #2827 from ryanhaining/assertthat_plugins_source
Rewrites plugins/source/ with matchers
This commit is contained in:
commit
37be6bb2c7
|
@ -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()
|
||||
}
|
||||
}
|
|
@ -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()
|
||||
}
|
||||
}
|
|
@ -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()
|
||||
}
|
||||
}
|
|
@ -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()
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue