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