Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored and snicoll committed Jun 3, 2016
1 parent ce68fdf commit 5de9516
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
public interface Jackson2ObjectMapperBuilderCustomizer {

/**
* Customize the jacksonObjectMapperBuilder.
* @param jacksonObjectMapperBuilder the jacksonObjectMapperBuilder to customize
* Customize the JacksonObjectMapperBuilder.
* @param jacksonObjectMapperBuilder the JacksonObjectMapperBuilder to customize
*/
void customize(Jackson2ObjectMapperBuilder jacksonObjectMapperBuilder);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void restTemplateWhenNoMessageConvertersDefinedShouldHaveDefaultMessageCo
}

@Test
public void restTemplateWhenHasCustomMesssageConvertersShouldHaveMessageConverters() {
public void restTemplateWhenHasCustomMessageConvertersShouldHaveMessageConverters() {
load(CustomHttpMessageConverter.class,
HttpMessageConvertersAutoConfiguration.class, RestTemplateConfig.class);
RestTemplate restTemplate = this.context.getBean(RestTemplate.class);
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-samples/spring-boot-sample-cache/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ the underlying `HazelcastInstance`.


=== Infinispan
Add the org.infinispan:infinispan-spring4-embedded` dependency to enable support for
Add the `org.infinispan:infinispan-spring4-embedded` dependency to enable support for
Infinispan. There is no default location that Infinispan uses to look for a config file
so if you don't specify anything it will bootstrap on a hardcoded default. You can set
the `spring.cache.infinispan.config` property to use the provided `infinispan.xml`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* <strong>only</strong> on beans that use {@link RestTemplateBuilder}.
* <p>
* Using this annotation will disable full auto-configuration and instead apply only
* configuration relevant to rest client tests (i.e. Jackson or GSON auto-configureation
* configuration relevant to rest client tests (i.e. Jackson or GSON auto-configuration
* and {@code @JsonComponent} beans, but not regular {@link Component @Component} beans).
* <p>
* By default, tests annotated with {@code RestClientTest} will also auto-configure a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void setDetectRootUri(boolean detectRootUri) {

@Override
public void customize(RestTemplate restTemplate) {
RequestExpectationManager expectationManager = createExpecationManager();
RequestExpectationManager expectationManager = createExpectationManager();
if (this.detectRootUri) {
expectationManager = RootUriRequestExpectationManager
.forRestTemplate(restTemplate, expectationManager);
Expand All @@ -93,7 +93,7 @@ public void customize(RestTemplate restTemplate) {
this.servers.put(restTemplate, server);
}

protected RequestExpectationManager createExpecationManager() {
protected RequestExpectationManager createExpectationManager() {
return BeanUtils.instantiate(this.expectationManager);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void createWhenExpectationManagerClassIsNullShouldThrowException()
}

@Test
public void createShouldUseExpectationMangerClass() throws Exception {
public void createShouldUseExpectationManagerClass() throws Exception {
MockServerRestTemplateCustomizer customizer = new MockServerRestTemplateCustomizer(
UnorderedRequestExpectationManager.class);
customizer.customize(new RestTemplate());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void createWhenExpectationManagerIsNullShouldThrowException()
}

@Test
public void expectRequestShouldDelegateToExpecationManager() throws Exception {
public void expectRequestShouldDelegateToExpectationManager() throws Exception {
ExpectedCount count = mock(ExpectedCount.class);
RequestMatcher requestMatcher = mock(RequestMatcher.class);
this.manager.expectRequest(count, requestMatcher);
Expand Down Expand Up @@ -128,7 +128,7 @@ public void validateRequestWhenRequestUriAssertionIsThrownShouldReplaceUriInMess
}

@Test
public void resetRequestShouldDelegateToExpecationManager() throws Exception {
public void resetRequestShouldDelegateToExpectationManager() throws Exception {
this.manager.reset();
verify(this.delegate).reset();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.springframework.core.annotation.AnnotationAwareOrderComparator;

/**
* {@link BeanPostProcessor} that apply all {@link EmbeddedServletContainerCustomizer}s
* {@link BeanPostProcessor} that applies all {@link EmbeddedServletContainerCustomizer}s
* from the bean factory to {@link ConfigurableEmbeddedServletContainer} beans.
*
* @author Dave Syer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public RestTemplateBuilder uriTemplateHandler(UriTemplateHandler uriTemplateHand
/**
* Set the {@link ResponseErrorHandler} that should be used with the
* {@link RestTemplate}.
* @param errorHandler the error hander to use
* @param errorHandler the error handler to use
* @return a new builder instance
*/
public RestTemplateBuilder errorHandler(ResponseErrorHandler errorHandler) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.springframework.core.annotation.AnnotationAwareOrderComparator;

/**
* {@link BeanPostProcessor} that apply all {@link ErrorPageRegistrar}s from the bean
* {@link BeanPostProcessor} that applies all {@link ErrorPageRegistrar}s from the bean
* factory to {@link ErrorPageRegistry} beans.
*
* @author Phillip Webb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void messageConvertersShouldApply() throws Exception {
}

@Test
public void messageConvertersShouldRepalceExisting() throws Exception {
public void messageConvertersShouldReplaceExisting() throws Exception {
RestTemplate template = this.builder
.messageConverters(new ResourceHttpMessageConverter())
.messageConverters(Collections.singleton(this.messageConverter)).build();
Expand Down Expand Up @@ -308,7 +308,7 @@ public void customize(RestTemplate restTemplate) {
}

@Test
public void customizersShouldRepalceExisting() throws Exception {
public void customizersShouldReplaceExisting() throws Exception {
RestTemplateCustomizer customizer1 = mock(RestTemplateCustomizer.class);
RestTemplateCustomizer customizer2 = mock(RestTemplateCustomizer.class);
RestTemplate template = this.builder.customizers(customizer1)
Expand Down

0 comments on commit 5de9516

Please sign in to comment.