Skip to content

Commit

Permalink
fix(iam-dialog-test): add missing changes from the removal of kotest …
Browse files Browse the repository at this point in the history
…runner annotation

SDK-186

Co-authored-by: davidSchuppa <32750715+davidSchuppa@users.noreply.github.com>
Co-authored-by: LasOri <24588073+LasOri@users.noreply.github.com>
Co-authored-by: megamegax <megamegax@users.noreply.github.com>
Co-authored-by: matusekma <36794575+matusekma@users.noreply.github.com>
  • Loading branch information
5 people committed Jan 30, 2025
1 parent 699403f commit 8f2864c
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,18 @@ import com.emarsys.mobileengage.iam.webview.IamWebViewFactory
import com.emarsys.mobileengage.iam.webview.MessageLoadedListener
import com.emarsys.testUtil.ExtensionTestUtils.runOnMain
import com.emarsys.testUtil.InstrumentationRegistry.Companion.getTargetContext
import com.emarsys.testUtil.KotestRunnerAndroid
import com.emarsys.testUtil.ReflectionTestUtils
import io.kotest.core.spec.style.AnnotationSpec
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.junit.runner.RunWith
import org.junit.After
import org.junit.Before
import org.junit.Test
import java.util.concurrent.CountDownLatch

@RunWith(KotestRunnerAndroid::class)
class IamDialogTest: AnnotationSpec() {
class IamDialogTest {
private companion object {
const val CAMPAIGN_ID = "id_value"
private const val SID = "testSid"
Expand All @@ -64,7 +63,7 @@ class IamDialogTest: AnnotationSpec() {
private var scenario: ActivityScenario<EmptyFragmentActivity>? = null
private lateinit var iamWebView: IamWebView

@BeforeEach
@Before
fun setUp() {
mockTimestampProvider = mockk(relaxed = true)
val mockUuidProvider: UUIDProvider = mockk(relaxed = true)
Expand Down Expand Up @@ -101,7 +100,7 @@ class IamDialogTest: AnnotationSpec() {
iamDialog = IamDialog(mockTimestampProvider, mockWebViewFactory)
}

@AfterEach
@After
fun tearDown() {
tearDownMobileEngageComponent()
scenario?.close()
Expand Down Expand Up @@ -261,7 +260,6 @@ class IamDialogTest: AnnotationSpec() {
}
}


@Test
fun testInitialization_setsDialogToFullscreen() {
val bundle = Bundle()
Expand Down

0 comments on commit 8f2864c

Please sign in to comment.