Merge pull request #45887 from ngocnhan-tran1996
* pr/45887: Update javadoc of test slice annotations to suggest MockitoBean rather than MockBean Closes gh-45887
This commit is contained in:
commit
52e5b45d83
|
@ -65,9 +65,9 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
* {@link AutoConfigureGraphQlTester @AutoConfigureGraphQlTester}.
|
* {@link AutoConfigureGraphQlTester @AutoConfigureGraphQlTester}.
|
||||||
* <p>
|
* <p>
|
||||||
* Typically {@code @GraphQlTest} is used in combination with
|
* Typically {@code @GraphQlTest} is used in combination with
|
||||||
* {@link org.springframework.boot.test.mock.mockito.MockBean @MockBean} or
|
* {@link org.springframework.test.context.bean.override.mockito.MockitoBean @MockitoBean}
|
||||||
* {@link org.springframework.context.annotation.Import @Import} to load any collaborators
|
* or {@link org.springframework.context.annotation.Import @Import} to load any
|
||||||
* and other components required for the tests.
|
* collaborators and other components required for the tests.
|
||||||
* <p>
|
* <p>
|
||||||
* To load your full application configuration instead and test via
|
* To load your full application configuration instead and test via
|
||||||
* {@code HttpGraphQlTester}, consider using
|
* {@code HttpGraphQlTester}, consider using
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2024 the original author or authors.
|
* Copyright 2012-2025 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -68,9 +68,9 @@ import org.springframework.test.web.reactive.server.WebTestClient;
|
||||||
* {@link AutoConfigureWebTestClient @AutoConfigureWebTestClient} annotation can be used.
|
* {@link AutoConfigureWebTestClient @AutoConfigureWebTestClient} annotation can be used.
|
||||||
* <p>
|
* <p>
|
||||||
* Typically {@code @WebFluxTest} is used in combination with
|
* Typically {@code @WebFluxTest} is used in combination with
|
||||||
* {@link org.springframework.boot.test.mock.mockito.MockBean @MockBean} or
|
* {@link org.springframework.test.context.bean.override.mockito.MockitoBean @MockitoBean}
|
||||||
* {@link Import @Import} to create any collaborators required by your {@code @Controller}
|
* or {@link Import @Import} to create any collaborators required by your
|
||||||
* beans.
|
* {@code @Controller} beans.
|
||||||
* <p>
|
* <p>
|
||||||
* If you are looking to load your full application configuration and use WebTestClient,
|
* If you are looking to load your full application configuration and use WebTestClient,
|
||||||
* you should consider {@link SpringBootTest @SpringBootTest} combined with
|
* you should consider {@link SpringBootTest @SpringBootTest} combined with
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2024 the original author or authors.
|
* Copyright 2012-2025 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -76,9 +76,9 @@ import org.springframework.test.web.servlet.MockMvc;
|
||||||
* {@link AutoConfigureMockMvc @AutoConfigureMockMvc} annotation can be used.
|
* {@link AutoConfigureMockMvc @AutoConfigureMockMvc} annotation can be used.
|
||||||
* <p>
|
* <p>
|
||||||
* Typically {@code @WebMvcTest} is used in combination with
|
* Typically {@code @WebMvcTest} is used in combination with
|
||||||
* {@link org.springframework.boot.test.mock.mockito.MockBean @MockBean} or
|
* {@link org.springframework.test.context.bean.override.mockito.MockitoBean @MockitoBean}
|
||||||
* {@link Import @Import} to create any collaborators required by your {@code @Controller}
|
* or {@link Import @Import} to create any collaborators required by your
|
||||||
* beans.
|
* {@code @Controller} beans.
|
||||||
* <p>
|
* <p>
|
||||||
* If you are looking to load your full application configuration and use MockMVC, you
|
* If you are looking to load your full application configuration and use MockMVC, you
|
||||||
* should consider {@link SpringBootTest @SpringBootTest} combined with
|
* should consider {@link SpringBootTest @SpringBootTest} combined with
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2024 the original author or authors.
|
* Copyright 2012-2025 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -51,8 +51,8 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
|
||||||
* </ul>
|
* </ul>
|
||||||
* <p>
|
* <p>
|
||||||
* Typically {@code WebServiceServerTest} is used in combination with
|
* Typically {@code WebServiceServerTest} is used in combination with
|
||||||
* {@link org.springframework.boot.test.mock.mockito.MockBean @MockBean} or
|
* {@link org.springframework.test.context.bean.override.mockito.MockitoBean @MockitoBean}
|
||||||
* {@link org.springframework.context.annotation.Import @Import} to create any
|
* or {@link org.springframework.context.annotation.Import @Import} to create any
|
||||||
* collaborators required by your {@code Endpoint} beans.
|
* collaborators required by your {@code Endpoint} beans.
|
||||||
* <p>
|
* <p>
|
||||||
* If you are looking to load your full application configuration and use
|
* If you are looking to load your full application configuration and use
|
||||||
|
|
Loading…
Reference in New Issue