use of org.hyperledger.besu.ethereum.api.jsonrpc.internal.results.privacy.PrivateTransactionGroupResult in project besu by hyperledger.
the class PrivGetPrivateTransactionTest method returnsPrivateTransactionGroup.
@Test
public void returnsPrivateTransactionGroup() {
final PrivateTransaction privateTransaction = PrivateTransactionDataFixture.privateTransactionBesu();
final ExecutedPrivateTransaction executedPrivateTransaction = createExecutedPrivateTransaction(privateTransaction);
when(privacyController.findPrivateTransactionByPmtHash(any(), any())).thenReturn(Optional.of(executedPrivateTransaction));
final PrivateTransactionGroupResult expectedResult = new PrivateTransactionGroupResult(privateTransaction);
final JsonRpcRequestContext request = createRequestContext();
final PrivateTransactionResult result = makeRequest(request);
assertThat(result).usingRecursiveComparison().isEqualTo(expectedResult);
}
Aggregations