diff options
author | Allan Wang <me@allanwang.ca> | 2021-09-13 20:57:56 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-09-13 20:57:56 -0700 |
commit | 47fcc3a2947be85a57086f7621ef1bdfcbd8a404 (patch) | |
tree | d9b4ef4daa9b28f26a8bf440be4ce997ad761192 /app/src/androidTest | |
parent | 2cea05c08619984947f2d997a0677459a7c42acf (diff) | |
download | frost-47fcc3a2947be85a57086f7621ef1bdfcbd8a404.tar.gz frost-47fcc3a2947be85a57086f7621ef1bdfcbd8a404.tar.bz2 frost-47fcc3a2947be85a57086f7621ef1bdfcbd8a404.zip |
Create initial hilt tests
Diffstat (limited to 'app/src/androidTest')
-rw-r--r-- | app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ActivityConstructionTest.kt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ActivityConstructionTest.kt b/app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ActivityConstructionTest.kt new file mode 100644 index 00000000..bad484ef --- /dev/null +++ b/app/src/androidTest/kotlin/com/pitchedapps/frost/activities/ActivityConstructionTest.kt @@ -0,0 +1,24 @@ +package com.pitchedapps.frost.activities + +import android.app.Activity +import android.os.Bundle +import androidx.test.core.app.ActivityScenario +import dagger.hilt.android.testing.HiltAndroidRule +import dagger.hilt.android.testing.HiltAndroidTest +import org.junit.Rule +import org.junit.Test + +@HiltAndroidTest +class ActivityConstructionTest { + + @get:Rule + val hiltRule = HiltAndroidRule(this) + + @Test + fun imageActivity() { + launch<ImageActivity>() + } + + private inline fun <reified A : Activity> launch(activityOptions: Bundle? = null) = + ActivityScenario.launch(A::class.java, activityOptions) +}
\ No newline at end of file |