Closes gh-11720
This commit is contained in:
Johnny Lim
2018-01-23 01:24:16 +09:00
committed by Phillip Webb
parent 55f44dc510
commit 768e7c07e6
16 changed files with 20 additions and 21 deletions

View File

@@ -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));

View File

@@ -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);

View File

@@ -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);

View File

@@ -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");