use of org.junit.jupiter.params.provider.EnumSource in project nem2-sdk-java by nemtech.
the class MosaicDefinitionTransactionIntegrationTest method aggregateMosaicSupplyChangeTransaction.
@ParameterizedTest
@EnumSource(RepositoryType.class)
void aggregateMosaicSupplyChangeTransaction(RepositoryType type) {
MosaicId mosaicId = createMosaic(type);
MosaicSupplyChangeTransaction mosaicSupplyChangeTransaction = MosaicSupplyChangeTransactionFactory.create(getNetworkType(), getDeadline(), mosaicId, MosaicSupplyChangeActionType.INCREASE, BigInteger.valueOf(12)).maxFee(maxFee).build();
announceAggregateAndValidate(type, mosaicSupplyChangeTransaction, account);
}
use of org.junit.jupiter.params.provider.EnumSource in project nem2-sdk-java by nemtech.
the class MosaicMetadataIntegrationTest method searchIntegration.
//
@ParameterizedTest
@EnumSource(RepositoryType.class)
void searchIntegration(RepositoryType type) {
BigInteger key = MapperUtils.fromHexToBigInteger("000000000000000A");
Address sourceAddress = Address.createFromEncoded("9852D5EAA9AB038151EEBDD34308B3B2B7D82B92955F298E");
Address targetAddress = Address.createFromEncoded("9852D5EAA9AB038151EEBDD34308B3B2B7D82B92955F298E");
MosaicId mosaicId = new MosaicId("213CED6E6BBA6689");
MetadataType metadataType = MetadataType.MOSAIC;
Page<Metadata> metadataPage = get(getRepositoryFactory(type).createMetadataRepository().search(new MetadataSearchCriteria().scopedMetadataKey(key).targetId(mosaicId).sourceAddress(sourceAddress).targetAddress(targetAddress).metadataType(metadataType)));
System.out.println(type + "\n" + toJson(metadataPage));
}
use of org.junit.jupiter.params.provider.EnumSource in project nem2-sdk-java by nemtech.
the class NetworkRepositoryIntegrationTest method getNetworkInfo.
@ParameterizedTest
@EnumSource(RepositoryType.class)
void getNetworkInfo(RepositoryType type) {
NetworkInfo networkInfo = get(getNetworkRepository(type).getNetworkInfo());
assertEquals(getNetworkType().getNetworkName(), networkInfo.getName());
Assertions.assertNotNull(networkInfo.getDescription());
}
use of org.junit.jupiter.params.provider.EnumSource 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 org.junit.jupiter.params.provider.EnumSource in project nem2-sdk-java by nemtech.
the class NodeRepositoryIntegrationTest method getServerInfo.
@ParameterizedTest
@EnumSource(RepositoryType.class)
void getServerInfo(RepositoryType type) {
ServerInfo serverInfo = get(getNodeRepository(type).getServerInfo());
assertNotEquals("", serverInfo.getRestVersion());
assertNotEquals("", serverInfo.getSdkVersion());
}
Aggregations