Search in sources :

Example 1 with OwnedMosaic

use of com.github.rosklyar.client.account.domain.mosaic.OwnedMosaic in project nem-library by rosklyar.

the class AccountClientTest method getOwnedMosaics.

@Test
void getOwnedMosaics() {
    List<OwnedMosaic> expectedOwnedMosaics = new ArrayList<>();
    expectedOwnedMosaics.add(new OwnedMosaic(new MosaicId("nem", "xem"), 13000000));
    OwnedMosaicsResponse ownedMosaicsResponse = accountClient.ownedMosaics(address);
    assertEquals(expectedOwnedMosaics, ownedMosaicsResponse.data);
}
Also used : OwnedMosaic(com.github.rosklyar.client.account.domain.mosaic.OwnedMosaic) MosaicId(com.github.rosklyar.client.transaction.domain.mosaic.MosaicId) ArrayList(java.util.ArrayList) OwnedMosaicsResponse(com.github.rosklyar.client.account.domain.mosaic.OwnedMosaicsResponse) Test(org.junit.jupiter.api.Test)

Aggregations

OwnedMosaic (com.github.rosklyar.client.account.domain.mosaic.OwnedMosaic)1 OwnedMosaicsResponse (com.github.rosklyar.client.account.domain.mosaic.OwnedMosaicsResponse)1 MosaicId (com.github.rosklyar.client.transaction.domain.mosaic.MosaicId)1 ArrayList (java.util.ArrayList)1 Test (org.junit.jupiter.api.Test)1