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