Commit f365e14 1 parent 162ee70 commit f365e14 Copy full SHA for f365e14
File tree 1 file changed +17
-0
lines changed
library/src/androidTest/java/org/xmtp/android/library
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,23 @@ class ClientTest {
111
111
112
112
@Test
113
113
fun testCreatesAV3Client () {
114
+ val context = InstrumentationRegistry .getInstrumentation().targetContext
115
+ val fakeWallet = PrivateKeyBuilder ()
116
+ val client =
117
+ Client ().create(
118
+ account = fakeWallet,
119
+ options = ClientOptions (
120
+ ClientOptions .Api (XMTPEnvironment .LOCAL , false ),
121
+ enableAlphaMls = true ,
122
+ appContext = context
123
+ )
124
+ )
125
+ val v3Client = client.libXMTPClient
126
+ assertEquals(client.address.lowercase(), v3Client?.accountAddress()?.lowercase())
127
+ }
128
+
129
+ @Test
130
+ fun testCreatesAV3DevClient () {
114
131
val context = InstrumentationRegistry .getInstrumentation().targetContext
115
132
val fakeWallet = PrivateKeyBuilder ()
116
133
val client =
You can’t perform that action at this time.
0 commit comments