Updated on 2026-08-14
This commit is contained in:
parent
3cc0a643e9
commit
642190f7c6
98 changed files with 317 additions and 202 deletions
|
|
@ -45,4 +45,8 @@ dependencies {
|
|||
testImplementation(projects.common.test)
|
||||
testImplementation(projects.test.core)
|
||||
testImplementation(projects.test.mock)
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
|
@ -18,9 +18,9 @@ import io.mockk.mockk
|
|||
import io.mockk.mockkObject
|
||||
import io.mockk.unmockkObject
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import org.junit.After
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.jupiter.api.AfterEach
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
internal class ValidateWalletAddressUseCaseTest {
|
||||
|
||||
|
|
@ -34,14 +34,14 @@ internal class ValidateWalletAddressUseCaseTest {
|
|||
private val userWalletId: UserWalletId = mockk()
|
||||
private val network: Network = mockk()
|
||||
|
||||
@Before
|
||||
@BeforeEach
|
||||
fun setUp() {
|
||||
mockkObject(BlockchainUtils)
|
||||
every { BlockchainUtils.decodeRippleXAddress(any(), any()) } returns null
|
||||
every { network.rawId } returns "ethereum"
|
||||
}
|
||||
|
||||
@After
|
||||
@AfterEach
|
||||
fun tearDown() {
|
||||
unmockkObject(BlockchainUtils)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ import io.mockk.coVerify
|
|||
import io.mockk.every
|
||||
import io.mockk.mockk
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import org.junit.Assert.*
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.junit.jupiter.api.Assertions.*
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import org.junit.jupiter.api.Test
|
||||
import java.math.BigDecimal
|
||||
import java.math.BigInteger
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ class TokenFeeCalculatorTest {
|
|||
private lateinit var mockUserWalletId: UserWalletId
|
||||
private lateinit var mockTransactionData: TransactionData
|
||||
|
||||
@Before
|
||||
@BeforeEach
|
||||
fun setup() {
|
||||
walletManagersFacade = mockk()
|
||||
gaslessTransactionRepository = mockk()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue