Replaces isInstanceOf with assertIs in ProfileStoreTest

Issue #2745
This commit is contained in:
Ryan Haining 2023-09-24 22:09:20 -07:00
parent e1e72bf4a9
commit 9a0f882910

View file

@ -3,6 +3,7 @@ package info.nightscout.implementation.profile
import app.aaps.core.interfaces.profile.PureProfile
import app.aaps.shared.tests.TestBaseWithProfile
import com.google.common.truth.Truth.assertThat
import kotlin.test.assertIs
import org.junit.jupiter.api.Test
internal class ProfileStoreTest : TestBaseWithProfile() {
@ -14,7 +15,7 @@ internal class ProfileStoreTest : TestBaseWithProfile() {
@Test
fun getDefaultProfileTest() {
assertThat(getValidProfileStore().getDefaultProfile()).isInstanceOf(PureProfile::class.java)
assertIs<PureProfile>(getValidProfileStore().getDefaultProfile())
}
@Test
@ -35,7 +36,7 @@ internal class ProfileStoreTest : TestBaseWithProfile() {
@Test
fun getSpecificProfileTest() {
assertThat(getValidProfileStore().getSpecificProfile(TESTPROFILENAME)).isInstanceOf(PureProfile::class.java)
assertIs<PureProfile>(getValidProfileStore().getSpecificProfile(TESTPROFILENAME))
}
@Test