XYOracleNetwork/sdk-xyo-client-android

View on GitHub
sdk/src/androidTest/java/network/xyo/client/QueryResponseWrapperTest.kt

Summary

Maintainability
A
0 mins
Test Coverage
package network.xyo.client

import network.xyo.client.node.client.QueryResponseWrapper
import org.junit.Test
import org.junit.jupiter.api.Assertions.*

class QueryResponseWrapperTest {
    @Test
    fun parseTest() {
        val queryResponseWrapper = QueryResponseWrapper.parse(TestConstants.queryResponseJson)
        assertNotEquals(queryResponseWrapper?.bw, null)
        assertEquals(queryResponseWrapper?.bwHash, TestConstants.queryResponseBWHash)
        assertNotEquals(queryResponseWrapper?.payloads?.size, 2)
    }
}