-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e06a7c
commit adca07b
Showing
6 changed files
with
691 additions
and
110 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
library/src/androidTest/java/org/xmtp/android/library/IdentityTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package org.xmtp.android.library | ||
|
||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import androidx.test.platform.app.InstrumentationRegistry | ||
import kotlinx.coroutines.runBlocking | ||
import org.junit.Before | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
import org.xmtp.android.library.messages.PrivateKey | ||
import org.xmtp.android.library.messages.PrivateKeyBuilder | ||
import org.xmtp.android.library.messages.walletAddress | ||
|
||
@RunWith(AndroidJUnit4::class) | ||
class IdentityTest { | ||
private lateinit var alixWallet: PrivateKeyBuilder | ||
private lateinit var boWallet: PrivateKeyBuilder | ||
private lateinit var alix: PrivateKey | ||
private lateinit var alixClient: Client | ||
private lateinit var bo: PrivateKey | ||
private lateinit var boClient: Client | ||
private lateinit var caroWallet: PrivateKeyBuilder | ||
private lateinit var caro: PrivateKey | ||
private lateinit var caroClient: Client | ||
private lateinit var fixtures: Fixtures | ||
|
||
@Before | ||
fun setUp() { | ||
val context = InstrumentationRegistry.getInstrumentation().targetContext | ||
fixtures = | ||
fixtures( | ||
clientOptions = ClientOptions( | ||
ClientOptions.Api(XMTPEnvironment.LOCAL, false), | ||
enableAlphaMls = true, | ||
appContext = context | ||
) | ||
) | ||
alixWallet = fixtures.aliceAccount | ||
alix = fixtures.alice | ||
boWallet = fixtures.bobAccount | ||
bo = fixtures.bob | ||
caroWallet = fixtures.caroAccount | ||
caro = fixtures.caro | ||
|
||
alixClient = fixtures.aliceClient | ||
boClient = fixtures.bobClient | ||
caroClient = fixtures.caroClient | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Version: c974c9b | ||
Branch: main | ||
Date: 2024-05-03 16:18:08 +0000 | ||
Version: c38495d | ||
Branch: identity-release | ||
Date: 2024-05-21 23:25:22 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.