File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
libraries/matrix/impl/src/test/kotlin/io/element/android/libraries/matrix/impl/server Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2024 New Vector Ltd.
3+ *
4+ * SPDX-License-Identifier: AGPL-3.0-only
5+ * Please see LICENSE in the repository root for full details.
6+ */
7+
8+ package io.element.android.libraries.matrix.impl.server
9+
10+ import com.google.common.truth.Truth.assertThat
11+ import io.element.android.libraries.matrix.test.FakeMatrixClient
12+ import org.junit.Test
13+
14+ class DefaultUserServerResolverTest {
15+ @Test
16+ fun resolve () {
17+ // Given
18+ val userServerResolver = DefaultUserServerResolver (FakeMatrixClient (
19+ userIdServerNameLambda = { " dummy.org" }
20+ ))
21+
22+ // When
23+ val result = userServerResolver.resolve()
24+
25+ // Then
26+ assertThat(result).isEqualTo(" dummy.org" )
27+ }
28+ }
You can’t perform that action at this time.
0 commit comments