use of io.nem.symbol.sdk.model.network.TransactionFees in project nem2-sdk-java by nemtech.
the class NetworkRepositoryIntegrationTest method getTransactionFees.
@ParameterizedTest
@EnumSource(RepositoryType.class)
void getTransactionFees(RepositoryType type) {
TransactionFees transactionFees = get(getNetworkRepository(type).getTransactionFees());
Assertions.assertNotNull(transactionFees.getAverageFeeMultiplier());
Assertions.assertNotNull(transactionFees.getHighestFeeMultiplier());
Assertions.assertNotNull(transactionFees.getLowestFeeMultiplier());
Assertions.assertNotNull(transactionFees.getMedianFeeMultiplier());
System.out.println(jsonHelper().prettyPrint(transactionFees));
}
use of io.nem.symbol.sdk.model.network.TransactionFees in project nem2-sdk-java by nemtech.
the class NetworkRepositoryVertxImplTest method getTransactionFees.
@Test
void getTransactionFees() throws Exception {
TransactionFeesDTO dto = new TransactionFeesDTO();
dto.setAverageFeeMultiplier(1L);
dto.setMedianFeeMultiplier(2L);
dto.setLowestFeeMultiplier(3L);
dto.setHighestFeeMultiplier(4L);
mockRemoteCall(dto);
TransactionFees info = repository.getTransactionFees().toFuture().get();
Assertions.assertNotNull(info);
Assertions.assertEquals(dto.getAverageFeeMultiplier(), info.getAverageFeeMultiplier());
Assertions.assertEquals(dto.getMedianFeeMultiplier(), info.getMedianFeeMultiplier());
Assertions.assertEquals(dto.getLowestFeeMultiplier(), info.getLowestFeeMultiplier());
Assertions.assertEquals(dto.getHighestFeeMultiplier(), info.getHighestFeeMultiplier());
}
use of io.nem.symbol.sdk.model.network.TransactionFees in project nem2-sdk-java by nemtech.
the class NetworkRepositoryOkHttpImplTest method getTransactionFees.
@Test
void getTransactionFees() throws Exception {
TransactionFeesDTO dto = new TransactionFeesDTO();
dto.setAverageFeeMultiplier(1L);
dto.setMedianFeeMultiplier(2L);
dto.setLowestFeeMultiplier(3L);
dto.setHighestFeeMultiplier(4L);
mockRemoteCall(dto);
TransactionFees info = repository.getTransactionFees().toFuture().get();
Assertions.assertNotNull(info);
Assertions.assertEquals(dto.getAverageFeeMultiplier(), info.getAverageFeeMultiplier());
Assertions.assertEquals(dto.getMedianFeeMultiplier(), info.getMedianFeeMultiplier());
Assertions.assertEquals(dto.getLowestFeeMultiplier(), info.getLowestFeeMultiplier());
Assertions.assertEquals(dto.getHighestFeeMultiplier(), info.getHighestFeeMultiplier());
}
Aggregations