diff options
author | Allan Wang <me@allanwang.ca> | 2018-12-25 16:32:51 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2018-12-25 16:32:51 -0500 |
commit | 697e457da453568ca703c2b655a2dd490157b443 (patch) | |
tree | c066cc83ee96c83a05d2b35b609a924b5c87a241 /app/src/androidTest | |
parent | 25760fa2d066a23e7fc72747f59c964e76ed0889 (diff) | |
download | frost-697e457da453568ca703c2b655a2dd490157b443.tar.gz frost-697e457da453568ca703c2b655a2dd490157b443.tar.bz2 frost-697e457da453568ca703c2b655a2dd490157b443.zip |
Clean up image activity and prepare for tests
Diffstat (limited to 'app/src/androidTest')
-rw-r--r-- | app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ImageActivityTest.kt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ImageActivityTest.kt b/app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ImageActivityTest.kt new file mode 100644 index 00000000..abffb106 --- /dev/null +++ b/app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ImageActivityTest.kt @@ -0,0 +1,32 @@ +package com.pitchedapps.frost.activities + +import androidx.test.ext.junit.runners.AndroidJUnit4 +import androidx.test.rule.ActivityTestRule +import org.junit.Rule +import org.junit.runner.RunWith +import android.content.Intent +import com.pitchedapps.frost.utils.ARG_COOKIE +import com.pitchedapps.frost.utils.ARG_IMAGE_URL +import com.pitchedapps.frost.utils.ARG_TEXT +import org.junit.Test + +@RunWith(AndroidJUnit4::class) +class ImageActivityTest { + + @get:Rule + val activity: ActivityTestRule<ImageActivity> = ActivityTestRule(ImageActivity::class.java, true, false) + + private fun launchActivity(imageUrl: String, text: String? = null, cookie: String? = null) { + val intent = Intent().apply { + putExtra(ARG_IMAGE_URL, imageUrl) + putExtra(ARG_TEXT, text) + putExtra(ARG_COOKIE, cookie) + } + activity.launchActivity(intent) + } + + @Test + fun intent() { + + } +}
\ No newline at end of file |