Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-03 19:57:47 +04:00
parent 3cc0a643e9
commit 642190f7c6
98 changed files with 317 additions and 202 deletions

View file

@ -14,7 +14,7 @@ import io.mockk.coVerifyOrder
import io.mockk.every
import io.mockk.mockk
import kotlinx.coroutines.test.runTest
import org.junit.Test
import org.junit.jupiter.api.Test
/**
[REDACTED_AUTHOR]

View file

@ -5,7 +5,7 @@ import com.google.common.truth.Truth
import io.mockk.every
import io.mockk.mockk
import kotlinx.coroutines.test.runTest
import org.junit.Test
import org.junit.jupiter.api.Test
import java.io.IOException
/**

View file

@ -6,7 +6,7 @@ import com.squareup.moshi.adapter
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import com.tangem.datasource.api.common.adapter.BigDecimalAdapter
import dev.onenowy.moshipolymorphicadapter.NamePolymorphicAdapterFactory
import org.junit.Test
import org.junit.jupiter.api.Test
import java.math.BigDecimal
/**
@ -42,10 +42,12 @@ class NetworkStatusDMSerializationTest {
{ "value": "0x123456", "type": "primary" },
{ "value": "0xabcdef", "type": "secondary" }
],
"amounts": { "ETH": "1.2345" },
"yield_supply_statuses": {
"ETH": { "is_active": false, "is_initialized": false, "is_allowed_to_spend": false }
}
"amounts": [
{ "id": { "value": "ethereum" }, "amount": "1.2345" }
],
"yield_supply_statuses": [
{ "id": { "value": "ethereum" }, "is_active": false, "is_initialized": false, "is_allowed_to_spend": false }
]
}
""".trimIndent()
@ -129,10 +131,12 @@ class NetworkStatusDMSerializationTest {
{ "value": "0x123456", "type": "primary" },
{ "value": "0xabcdef", "type": "secondary" }
],
"amounts": { "ETH": "1.2345" },
"yield_supply_statuses": {
"ETH": { "is_active": false, "is_initialized": false, "is_allowed_to_spend": false }
}
"amounts": [
{ "id": { "value": "ethereum" }, "amount": "1.2345" }
],
"yield_supply_statuses": [
{ "id": { "value": "ethereum" }, "is_active": false, "is_initialized": false, "is_allowed_to_spend": false }
]
}
""".stripJsonWhitespace()