File tree Expand file tree Collapse file tree 8 files changed +28
-20
lines changed
spring-test/src/test/java/org/springframework/test/context/bean/override/mockito Expand file tree Collapse file tree 8 files changed +28
-20
lines changed Original file line number Diff line number Diff line change 2626import static org .assertj .core .api .Assertions .assertThatIllegalStateException ;
2727
2828/**
29- * Tests for {@link MockitoBean}.
29+ * Tests for {@link MockitoBean @MockitoBean }.
3030 *
3131 * @author Stephane Nicoll
3232 * @author Sam Brannen
3333 */
34- class MockitoMockBeanTests {
34+ class MockitoBeanConfigurationErrorTests {
3535
3636 @ Test
3737 void cannotOverrideBeanByNameWithNoSuchBeanName () {
Original file line number Diff line number Diff line change 2626import static org .assertj .core .api .Assertions .assertThatIllegalStateException ;
2727
2828/**
29- * Tests for {@link MockitoSpyBean}.
29+ * Tests for {@link MockitoSpyBean @MockitoSpyBean }.
3030 *
3131 * @author Stephane Nicoll
3232 */
33- class MockitoSpyBeanTests {
33+ class MockitoSpyBeanConfigurationErrorTests {
3434
3535 @ Test
3636 void contextCustomizerCannotBeCreatedWithNoSuchBeanName () {
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- package org .springframework .test .context .bean .override .mockito ;
17+ package org .springframework .test .context .bean .override .mockito . integration ;
1818
1919import java .util .concurrent .CompletableFuture ;
2020
2828import org .springframework .context .annotation .Configuration ;
2929import org .springframework .scheduling .annotation .Async ;
3030import org .springframework .scheduling .annotation .EnableAsync ;
31+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
3132import org .springframework .test .context .junit .jupiter .SpringExtension ;
3233
3334import static java .util .concurrent .CompletableFuture .completedFuture ;
4344 * @since 6.2
4445 */
4546@ ExtendWith (SpringExtension .class )
46- public class MockitoBeanAndAsyncInterfaceMethodTests {
47+ public class MockitoBeanAndAsyncInterfaceMethodIntegrationTests {
4748
4849 @ MockitoBean
4950 Transformer transformer ;
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- package org .springframework .test .context .bean .override .mockito ;
17+ package org .springframework .test .context .bean .override .mockito . integration ;
1818
1919import org .junit .jupiter .api .BeforeEach ;
2020import org .junit .jupiter .api .Test ;
2424import org .springframework .test .context .ContextHierarchy ;
2525import org .springframework .test .context .bean .override .example .ExampleService ;
2626import org .springframework .test .context .bean .override .example .ExampleServiceCaller ;
27+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
2728import org .springframework .test .context .junit .jupiter .SpringJUnitConfig ;
2829
2930import static org .assertj .core .api .Assertions .assertThat ;
3637 * @author Sam Brannen
3738 * @author Phillip Webb
3839 * @since 6.2
39- * @see MockitoSpyBeanAndContextHierarchyChildTests
40+ * @see MockitoSpyBeanAndContextHierarchyChildIntegrationTests
4041 */
4142@ SpringJUnitConfig
42- public class MockitoBeanAndContextHierarchyParentTests {
43+ public class MockitoBeanAndContextHierarchyParentIntegrationTests {
4344
4445 @ MockitoBean
4546 ExampleService service ;
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- package org .springframework .test .context .bean .override .mockito ;
17+ package org .springframework .test .context .bean .override .mockito . integration ;
1818
1919import org .junit .jupiter .api .BeforeEach ;
2020import org .junit .jupiter .api .Test ;
2828import org .springframework .test .context .bean .override .example .ExampleService ;
2929import org .springframework .test .context .bean .override .example .ExampleServiceCaller ;
3030import org .springframework .test .context .bean .override .example .FailingExampleService ;
31+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
3132import org .springframework .test .context .junit .jupiter .SpringExtension ;
3233
3334import static org .assertj .core .api .Assertions .assertThat ;
4344 * @see <a href="https://github.com/spring-projects/spring-boot/issues/5724">gh-5724</a>
4445 */
4546@ ExtendWith (SpringExtension .class )
46- public class MockitoBeanAndScopedProxyTests {
47+ public class MockitoBeanAndScopedProxyIntegrationTests {
4748
4849 @ MockitoBean
4950 // The ExampleService mock should replace the scoped-proxy FailingExampleService
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- package org .springframework .test .context .bean .override .mockito ;
17+ package org .springframework .test .context .bean .override .mockito . integration ;
1818
1919import org .junit .jupiter .api .RepeatedTest ;
2020import org .junit .jupiter .api .extension .ExtendWith ;
3030import org .springframework .context .annotation .Bean ;
3131import org .springframework .context .annotation .Configuration ;
3232import org .springframework .context .annotation .Import ;
33+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
3334import org .springframework .test .context .junit .jupiter .SpringExtension ;
3435
3536import static org .assertj .core .api .Assertions .assertThat ;
4647 * @author Phillip Webb
4748 * @since 6.2
4849 * @see <a href="https://github.com/spring-projects/spring-boot/issues/5837">5837</a>
49- * @see MockitoSpyBeanAndSpringAopProxyTests
50+ * @see MockitoSpyBeanAndSpringAopProxyIntegrationTests
5051 */
5152@ ExtendWith (SpringExtension .class )
52- class MockitoBeanAndSpringAopProxyTests {
53+ class MockitoBeanAndSpringAopProxyIntegrationTests {
5354
5455 @ MockitoBean
5556 DateService dateService ;
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- package org .springframework .test .context .bean .override .mockito ;
17+ package org .springframework .test .context .bean .override .mockito . integration ;
1818
1919import org .junit .jupiter .api .Test ;
2020
2727import org .springframework .test .context .aot .DisabledInAotMode ;
2828import org .springframework .test .context .bean .override .example .ExampleService ;
2929import org .springframework .test .context .bean .override .example .ExampleServiceCaller ;
30+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
31+ import org .springframework .test .context .bean .override .mockito .MockitoSpyBean ;
3032
3133import static org .assertj .core .api .Assertions .assertThat ;
3234
3840 * @author Sam Brannen
3941 * @author Phillip Webb
4042 * @since 6.2
41- * @see MockitoBeanAndContextHierarchyParentTests
43+ * @see MockitoBeanAndContextHierarchyParentIntegrationTests
4244 */
4345@ ContextHierarchy (@ ContextConfiguration )
4446@ DisabledInAotMode // @ContextHierarchy is not supported in AOT.
45- public class MockitoSpyBeanAndContextHierarchyChildTests extends MockitoBeanAndContextHierarchyParentTests {
47+ public class MockitoSpyBeanAndContextHierarchyChildIntegrationTests extends
48+ MockitoBeanAndContextHierarchyParentIntegrationTests {
4649
4750 @ MockitoSpyBean
4851 ExampleServiceCaller serviceCaller ;
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- package org .springframework .test .context .bean .override .mockito ;
17+ package org .springframework .test .context .bean .override .mockito . integration ;
1818
1919import org .junit .jupiter .api .BeforeEach ;
2020import org .junit .jupiter .api .Disabled ;
3333import org .springframework .context .annotation .Bean ;
3434import org .springframework .context .annotation .Configuration ;
3535import org .springframework .context .annotation .Import ;
36+ import org .springframework .test .context .bean .override .mockito .MockitoSpyBean ;
3637import org .springframework .test .context .junit .jupiter .SpringExtension ;
3738import org .springframework .test .util .AopTestUtils ;
3839
5152 * @author Phillip Webb
5253 * @since 6.2
5354 * @see <a href="https://github.com/spring-projects/spring-boot/issues/5837">5837</a>
54- * @see MockitoBeanAndSpringAopProxyTests
55+ * @see MockitoBeanAndSpringAopProxyIntegrationTests
5556 */
5657@ ExtendWith (SpringExtension .class )
57- class MockitoSpyBeanAndSpringAopProxyTests {
58+ class MockitoSpyBeanAndSpringAopProxyIntegrationTests {
5859
5960 @ MockitoSpyBean
6061 DateService dateService ;
You can’t perform that action at this time.
0 commit comments