use of com.radixdlt.api.core.openapitools.model.Validator in project radixdlt by radixdlt.
the class EngineStatusHandlerTest method engine_configuration_should_return_correct_data.
@Test
public void engine_configuration_should_return_correct_data() throws Exception {
// Arrange
start();
// Act
var request = new EngineStatusRequest().networkIdentifier(new NetworkIdentifier().network("localnet"));
var response = handleRequestWithExpectedResponse(sut, request, EngineStatusResponse.class);
// Assert
assertThat(response.getValidatorSet()).containsExactly(new Validator().validatorAddress(addressing.forValidators().of(selfKey())).stake(getStakeAmount().toSubunits().toString()));
}
Aggregations