diff --git a/domain/src/test/java/com/tangem/domain/features/BlockchainNetworkIdTests.kt b/domain/src/test/java/com/tangem/domain/features/BlockchainTests.kt similarity index 60% rename from domain/src/test/java/com/tangem/domain/features/BlockchainNetworkIdTests.kt rename to domain/src/test/java/com/tangem/domain/features/BlockchainTests.kt index ff5079bdf4..b8291b93ac 100644 --- a/domain/src/test/java/com/tangem/domain/features/BlockchainNetworkIdTests.kt +++ b/domain/src/test/java/com/tangem/domain/features/BlockchainTests.kt @@ -6,18 +6,15 @@ import com.tangem.domain.common.extensions.fromNetworkId import com.tangem.domain.common.extensions.toNetworkId import org.junit.Test -class BlockchainNetworkIdTests { +class BlockchainTests { @Test - fun checkAppropriateImplementationForNetworkIds() { + fun allNetworkIdsAreImplemented() { val unimplementedIds = Blockchain.values() .toMutableList() .apply { remove(Blockchain.Unknown) } .map { it to Blockchain.fromNetworkId(it.toNetworkId()) } - .filter { it.second == null } + .mapNotNull { if(it.second == null) it.first else null } - if (unimplementedIds.isEmpty()) return - - val message = unimplementedIds.joinToString("\n") { it.first.fullName } - Truth.assert_().withMessage(message).fail() + Truth.assertThat(unimplementedIds).isEmpty() } } \ No newline at end of file