use of com.github.rosklyar.client.DefaultNemClientFactory in project nem-library by rosklyar.
the class TransactionClientTest method init.
@BeforeAll
static void init() {
String transactionClientConfigurationPrefix = "transactionApi";
String accountClientConfigurationPrefix = "accountApi";
String mosaicClientConfigurationPrefix = "mosaicApi";
String nodeClientConfigurationPrefix = "nodeApi";
getConfigInstance().setProperty(transactionClientConfigurationPrefix + ".ribbon.listOfServers", "153.122.112.137:7890");
getConfigInstance().setProperty(accountClientConfigurationPrefix + ".ribbon.listOfServers", "153.122.112.137:7890");
getConfigInstance().setProperty(mosaicClientConfigurationPrefix + ".ribbon.listOfServers", "153.122.112.137:7890");
getConfigInstance().setProperty(nodeClientConfigurationPrefix + ".ribbon.listOfServers", "153.122.112.137:7890");
getConfigInstance().setProperty("hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds", 30000);
DefaultNemClientFactory factory = new DefaultNemClientFactory();
transactionClient = factory.createTransactionClient(transactionClientConfigurationPrefix, TEST, factory.createMosaicClient(mosaicClientConfigurationPrefix), factory.createAccountClient(accountClientConfigurationPrefix), factory.createNodeClient(nodeClientConfigurationPrefix));
}
Aggregations