From 47169436ed8329412ec7548ac2b2441c777d491a Mon Sep 17 00:00:00 2001 From: Orangeroad0922 Date: Tue, 12 Mar 2019 23:42:52 +0900 Subject: [PATCH 1/2] Fix typo in spring-boot-features.adoc See gh-16213 --- .../src/main/asciidoc/spring-boot-features.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index a5b384bb247..6cbb19a044f 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -6613,7 +6613,7 @@ specific slices>> of an application. TIP: If you are using JUnit 4, don't forget to also add `@RunWith(SpringRunner.class)` to your test, otherwise the annotations will be ignored. If you are using JUnit 5, there's no -need to add the equivalent `@ExtendWith(SpringExtension)` as `@SpringBootTest` and the +need to add the equivalent `@ExtendWith(SpringExtension.class)` as `@SpringBootTest` and the other `@…Test` annotations are already annotated with it. By default, `@SpringBootTest` will not start a server. You can use the `webEnvironment` From 765801983b814b35795b109b243e1f9f8030812a Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 12 Mar 2019 17:21:18 +0100 Subject: [PATCH 2/2] Polish "Fix typo in spring-boot-features.adoc" Closes gh-16213 --- .../src/main/asciidoc/spring-boot-features.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 6cbb19a044f..006a62e1307 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -6613,8 +6613,8 @@ specific slices>> of an application. TIP: If you are using JUnit 4, don't forget to also add `@RunWith(SpringRunner.class)` to your test, otherwise the annotations will be ignored. If you are using JUnit 5, there's no -need to add the equivalent `@ExtendWith(SpringExtension.class)` as `@SpringBootTest` and the -other `@…Test` annotations are already annotated with it. +need to add the equivalent `@ExtendWith(SpringExtension.class)` as `@SpringBootTest` and +the other `@…Test` annotations are already annotated with it. By default, `@SpringBootTest` will not start a server. You can use the `webEnvironment` attribute of `@SpringBootTest` to further refine how your tests run: