Search in sources :

Example 1 with OperatorProperties

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();
}
Also used : NodeProperties(com.hedera.mirror.monitor.NodeProperties) OperatorProperties(com.hedera.mirror.monitor.OperatorProperties) MonitorProperties(com.hedera.mirror.monitor.MonitorProperties) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

MonitorProperties (com.hedera.mirror.monitor.MonitorProperties)1 NodeProperties (com.hedera.mirror.monitor.NodeProperties)1 OperatorProperties (com.hedera.mirror.monitor.OperatorProperties)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1