use of com.radixdlt.api.core.openapitools.model.ConstructionDeriveRequestMetadataValidator in project radixdlt by radixdlt.
the class ConstructionDeriveHandlerTest method derive_validator_request_should_return_validator_entity_identifier.
@Test
public void derive_validator_request_should_return_validator_entity_identifier() throws CoreApiException {
// Arrange
var publicKey = PrivateKeys.ofNumeric(2).getPublicKey();
start();
// Act
var request = new ConstructionDeriveRequest().networkIdentifier(networkIdentifier()).publicKey(coreModelMapper.publicKey(publicKey)).metadata(new ConstructionDeriveRequestMetadataValidator().type("Validator"));
var response = sut.handleRequest(request);
// Assert
assertThat(response.getEntityIdentifier()).isEqualTo(coreModelMapper.entityIdentifier(publicKey));
}
Aggregations