use of org.springframework.boot.actuate.endpoint.invoke.OperationParameters in project spring-boot by spring-projects.
the class OperationMethodTests method getParametersShouldReturnParameters.
@Test
void getParametersShouldReturnParameters() {
OperationMethod operationMethod = new OperationMethod(this.exampleMethod, OperationType.READ);
OperationParameters parameters = operationMethod.getParameters();
assertThat(parameters.getParameterCount()).isEqualTo(1);
assertThat(parameters.iterator().next().getName()).isEqualTo("name");
}
Aggregations