Search in sources :

Example 1 with HistoryResponse

use of com.github.rosklyar.client.account.domain.history.HistoryResponse in project nem-library by rosklyar.

the class AccountClientTest method getHistory.

@Test
@Disabled("only for NIS nodes that supports historical data feature")
void getHistory() {
    HistoryResponse history = accountClient.history(address, 1002229, 1003229, 100);
    assertEquals(address, history.data.stream().findFirst().orElseThrow(RuntimeException::new).address);
}
Also used : HistoryResponse(com.github.rosklyar.client.account.domain.history.HistoryResponse) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Aggregations

HistoryResponse (com.github.rosklyar.client.account.domain.history.HistoryResponse)1 Disabled (org.junit.jupiter.api.Disabled)1 Test (org.junit.jupiter.api.Test)1