|
|
|
@ -1436,19 +1436,19 @@ documentation]. |
|
|
|
[[boot-features-testing]] |
|
|
|
[[boot-features-testing]] |
|
|
|
== Testing |
|
|
|
== Testing |
|
|
|
Spring Boot provides a number of useful tools for testing your application. The |
|
|
|
Spring Boot provides a number of useful tools for testing your application. The |
|
|
|
`spring-boot-starter-test` POM provides Spring Test, JUnit, Hamcrest and Mockito |
|
|
|
`spring-boot-starter-parent` POM provides JUnit, Hamcrest and Mockito ``test'' `scope` |
|
|
|
dependencies. There are also useful test utilities in the core `spring-boot` module |
|
|
|
dependencies. There are also useful test utilities in the core `spring-boot` module |
|
|
|
under the `org.springframework.boot.test` package. |
|
|
|
under the `org.springframework.boot.test` package. There is also a |
|
|
|
|
|
|
|
`spring-boot-starter-test` ``Starter POM''. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[boot-features-test-scope-dependencies]] |
|
|
|
[[boot-features-test-scope-dependencies]] |
|
|
|
=== Test scope dependencies |
|
|
|
=== Test scope dependencies |
|
|
|
If you use the |
|
|
|
If you extend your Maven project from the `spring-boot-starter-parent` POM, or use the |
|
|
|
`spring-boot-starter-test` ``Starter POM'' (in the `test` `scope`), you will find |
|
|
|
`spring-boot-starter-test` ``Starter POM'' (in the `test` `scope`), you will find |
|
|
|
the following provided libraries: |
|
|
|
the following provided libraries: |
|
|
|
|
|
|
|
|
|
|
|
* Spring Test -- integration test support for Spring applications. |
|
|
|
|
|
|
|
* Junit -- The de-facto standard for unit testing Java applications. |
|
|
|
* Junit -- The de-facto standard for unit testing Java applications. |
|
|
|
* Hamcrest -- A library of matcher objects (also known as constraints or predicates) |
|
|
|
* Hamcrest -- A library of matcher objects (also known as constraints or predicates) |
|
|
|
allowing `assertThat` style JUnit assertions. |
|
|
|
allowing `assertThat` style JUnit assertions. |
|
|
|
|