use of com.hedera.mirror.monitor.OperatorProperties in project hedera-mirror-node by hashgraph.
the class TransactionPublisherTest method setup.
@BeforeEach
void setup() throws IOException {
publishScenarioProperties = new PublishScenarioProperties();
publishScenarioProperties.setName("test");
publishScenarioProperties.setType(TransactionType.CRYPTO_TRANSFER);
monitorProperties = new MonitorProperties();
monitorProperties.setNodes(Set.of(new NodeProperties("0.0.3", "in-process:test")));
monitorProperties.getNodeValidation().setEnabled(false);
OperatorProperties operatorProperties = monitorProperties.getOperator();
operatorProperties.setAccountId("0.0.100");
operatorProperties.setPrivateKey(PrivateKey.generate().toString());
publishProperties = new PublishProperties();
transactionPublisher = new TransactionPublisher(monitorProperties, publishProperties);
cryptoServiceStub = new CryptoServiceStub();
server = InProcessServerBuilder.forName("test").addService(cryptoServiceStub).directExecutor().build().start();
}
Aggregations