@@ -4351,7 +4351,7 @@ Spring Boot provides a number of utilities and annotations to help when testing
43514351application. Test support is provided by two modules; `spring-boot-test` contains core
43524352items, and `spring-boot-test-autoconfigure` supports auto-configuration for tests.
43534353
4354- Most developers will just use the the `spring-boot-starter-test` '`Starter POM`' which
4354+ Most developers will just use the `spring-boot-starter-test` '`Starter POM`' which
43554355imports both Spring Boot test modules as well has JUnit, AssertJ, Hamcrest and a number
43564356of other useful libraries.
43574357
@@ -4364,9 +4364,9 @@ If you use the
43644364the following provided libraries:
43654365
43664366* http://junit.org[JUnit] -- The de-facto standard for unit testing Java applications.
4367- * {spring-reference}/#integration-testing.html[Spring Test] & Spring Boot Test -- utilities and integration test support for Spring Boot
4367+ * {spring-reference}/#integration-testing.html[Spring Test] & Spring Boot Test -- Utilities and integration test support for Spring Boot
43684368 applications.
4369- * http://joel-costigliola.github.io/assertj/[AssertJ] - A fluent assertion library.
4369+ * http://joel-costigliola.github.io/assertj/[AssertJ] -- A fluent assertion library.
43704370* http://hamcrest.org/JavaHamcrest/[Hamcrest] -- A library of matcher objects (also known
43714371 as constraints or predicates).
43724372* http://mockito.org/[Mockito] -- A Java mocking framework.
@@ -4408,7 +4408,7 @@ features of Spring Boot are only installed in the context by default if you use
44084408`SpringApplication` to create it.
44094409
44104410Spring Boot provides a `@SpringBootTest` annotation which can be used as an
4411- alternative the standard `spring-test` `@ContextConfiguration` annotation when you need
4411+ alternative to the standard `spring-test` `@ContextConfiguration` annotation when you need
44124412Spring Boot features. The annotation works by creating the `ApplicationContext` used
44134413in your tests via `SpringApplication`.
44144414
@@ -4425,7 +4425,7 @@ how your tests will run:
44254425* `DEFINED_PORT` -- Loads an `EmbeddedWebApplicationContext` and provides a real
44264426 servlet environment. Embedded servlet containers are started and listening on a defined
44274427 port (i.e from your `application.properties` or on the default port `8080`).
4428- * `NONE` -- Loads an `ApplicationContext` using `SpringApplication` but does not provides
4428+ * `NONE` -- Loads an `ApplicationContext` using `SpringApplication` but does not provide
44294429 _any_ servlet environment (mock or otherwise).
44304430
44314431NOTE: In addition to `@SpringBootTest` a number of other annotations are also
@@ -4533,8 +4533,8 @@ failures that might be hard to trigger in a real environment.
45334533Spring Boot includes a `@MockBean` annotation that can be used to define a Mockito mock
45344534for a bean inside your `ApplicationContext`. You can use the annotation to add new beans,
45354535or replace a single existing bean definition. The annotation can be used directly on test
4536- classes, on fields within your test; or on `@Configuration` classes and fields. When used
4537- on a field the, instance of the created mock will also be injected. Mock beans are
4536+ classes, on fields within your test, or on `@Configuration` classes and fields. When used
4537+ on a field, the instance of the created mock will also be injected. Mock beans are
45384538automatically reset after each test method.
45394539
45404540Here's a typical example where we replace an existing `RemoteService` bean with a mock
@@ -4574,7 +4574,7 @@ implementation:
45744574----
45754575
45764576Additionally you can also use `@SpyBean` to wrap any existing bean with a Mockito `spy`.
4577- See the javadoc for full details.
4577+ See the Javadoc for full details.
45784578
45794579
45804580[[boot-features-testing-spring-boot-applications-testing-autoconfigured-tests]]
@@ -4583,11 +4583,11 @@ Spring Boot's auto-configuration system works well for applications, but can som
45834583a little too much for tests. It's often helpful to load only the parts of the
45844584configuration that are required to test a '`slice`' of your application. For example, you
45854585might want to test that Spring MVC controllers are mapping URLs correctly, and you don't
4586- want to involve and database calls in those tests; or you _might be wanting_ to test JPA
4586+ want to involve database calls in those tests; or you _might be wanting_ to test JPA
45874587entities, and you're not interested in web layer when those tests run.
45884588
45894589The `spring-boot-test-autoconfigure` module includes a number of annotations that can be
4590- used to automatically configure such '`slices`'. Each of them work in a similar way,
4590+ used to automatically configure such '`slices`'. Each of them works in a similar way,
45914591providing a `@...Test` annotation that loads the `ApplicationContext` and one or
45924592more `@AutoConfigure...` annotations that can be used to customize auto-configuration
45934593settings.
@@ -4601,7 +4601,7 @@ TIP: It's also possible to use the `@AutoConfigure...` annotations with the stan
46014601[[boot-features-testing-spring-boot-applications-testing-autoconfigured-json-tests]]
46024602==== Auto-configured JSON tests
46034603To test that Object JSON serialization and deserialization is working as expected you can
4604- use the `@JsonTest` annotation. `@JsonTest` will auto-configure Jackson ObjectMappers ,
4604+ use the `@JsonTest` annotation. `@JsonTest` will auto-configure Jackson `ObjectMapper` ,
46054605any `@JsonComponent` beans and any Jackson `Modules`. It also configures `Gson`
46064606if you happen to be using that instead of, or as well as, Jackson. If you need to
46074607configure elements of the auto-configuration you can use the `@AutoConfigureJsonTesters`
@@ -4751,7 +4751,7 @@ and/or a `WebDriver` bean. Here is an example that uses HtmlUnit:
47514751
47524752[[boot-features-testing-spring-boot-applications-testing-autoconfigured-jpa-test]]
47534753==== Auto-configured Data JPA tests
4754- The `@DataJpaTest` can be used if want to test JPA applications. By default it will
4754+ The `@DataJpaTest` can be used if you want to test JPA applications. By default it will
47554755configure an in-memory embedded database, scan for `@Entity` classes and configure Spring
47564756Data JPA repositories. Regular `@Component` beans will not be loaded into the
47574757`ApplicationContext`.
0 commit comments