INNER CODE UNIT · Kotlin

EditImageActivityTest

burhanrashid52/PhotoEditor · app/src/androidTest/java/com/burhanrashid52/photoediting/EditImageActivityTest.kt:31

class EditImageActivityTest {
    @Rule @JvmField
    var mActivityRule = ActivityTestRule(
        EditImageActivity::class.java, false, false
    )

    @Test
    fun checkIfActivityIsLaunched() {
        mActivityRule.launchActivity(null)
        Espresso.onView(ViewMatchers.withText(R.string.app_name)).check(
            ViewAssertions.matches(
                ViewMatchers.isDisplayed()
            )
        )
    }

    @Test
    fun checkIfBrushIsEnabledWhenClickedOnBrushTool() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…