Polish
Closes gh-11720
This commit is contained in:
@@ -161,7 +161,7 @@ public class EndpointDiscovererTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getEndpointsWhenTtlSetByIdAndIdDoesntMatchShouldNotCacheInvokeCalls() {
|
||||
public void getEndpointsWhenTtlSetByIdAndIdDoesNotMatchShouldNotCacheInvokeCalls() {
|
||||
load(TestEndpointConfiguration.class, (context) -> {
|
||||
TestEndpointDiscoverer discoverer = new TestEndpointDiscoverer(context,
|
||||
(endpointId) -> (endpointId.equals("foo") ? 500L : 0L));
|
||||
|
||||
@@ -43,7 +43,7 @@ public class OperationMethodParameterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getTypeShouldReturnTyoe() {
|
||||
public void getTypeShouldReturnType() {
|
||||
OperationMethodParameter parameter = new OperationMethodParameter("name",
|
||||
this.method.getParameters()[0]);
|
||||
assertThat(parameter.getType()).isEqualTo(String.class);
|
||||
|
||||
@@ -73,7 +73,7 @@ public class ReflectiveOperationInvokerTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createWhenParamaterValueMapperIsNullShouldThrowException() {
|
||||
public void createWhenParameterValueMapperIsNullShouldThrowException() {
|
||||
this.thrown.expect(IllegalArgumentException.class);
|
||||
this.thrown.expectMessage("ParameterValueMapper must not be null");
|
||||
new ReflectiveOperationInvoker(this.target, this.operationMethod, null);
|
||||
@@ -88,7 +88,7 @@ public class ReflectiveOperationInvokerTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void invokeWhenMissingNonNullableArgmentShouldThrowException() {
|
||||
public void invokeWhenMissingNonNullableArgumentShouldThrowException() {
|
||||
ReflectiveOperationInvoker invoker = new ReflectiveOperationInvoker(this.target,
|
||||
this.operationMethod, this.parameterValueMapper);
|
||||
this.thrown.expect(MissingParametersException.class);
|
||||
|
||||
@@ -49,7 +49,7 @@ public class WebEndpointResponseTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void createWhithBodyAndStatusShouldReturnStatusAndBody() {
|
||||
public void createWithBodyAndStatusShouldReturnStatusAndBody() {
|
||||
WebEndpointResponse<Object> response = new WebEndpointResponse<>("body", 500);
|
||||
assertThat(response.getStatus()).isEqualTo(500);
|
||||
assertThat(response.getBody()).isEqualTo("body");
|
||||
|
||||
Reference in New Issue
Block a user