Commit 7a2b701 1 parent 4ddc0a0 commit 7a2b701 Copy full SHA for 7a2b701
File tree 1 file changed +9
-0
lines changed
app/src/androidTest/java/com/github/swent/echo/di
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com.github.swent.echo.di
2
2
3
3
import com.github.swent.echo.authentication.AuthenticationService
4
+ import com.github.swent.echo.data.repository.Repository
5
+ import com.github.swent.echo.data.repository.RepositoryImpl
4
6
import dagger.hilt.android.testing.HiltAndroidRule
5
7
import dagger.hilt.android.testing.HiltAndroidTest
6
8
import io.github.jan.supabase.SupabaseClient
@@ -29,6 +31,8 @@ class DependencyInjectionTest {
29
31
30
32
@Inject lateinit var authenticationService: AuthenticationService
31
33
34
+ @Inject lateinit var repository: Repository
35
+
32
36
@Before
33
37
fun setUp () {
34
38
// This tells Hilt to inject the [supabaseClient] and [authenticationService] fields.
@@ -48,4 +52,9 @@ class DependencyInjectionTest {
48
52
fun testAuthenticationServiceInjection () {
49
53
assertEquals(SimpleAuthenticationService ::class .java, authenticationService::class .java)
50
54
}
55
+
56
+ @Test
57
+ fun testRepositoryInjection () {
58
+ assertEquals(RepositoryImpl ::class .java, repository::class .java)
59
+ }
51
60
}
You can’t perform that action at this time.
0 commit comments