Skip to content

Commit 11aa4d0

Browse files
izeyephilwebb
authored andcommitted
Fix ResetMocksTestExecutionListenerTests
Align test implementation with names. Closes gh-6842
1 parent 91e6a5f commit 11aa4d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/ResetMocksTestExecutionListenerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ public ExampleService before(MockitoBeans mockedBeans) {
7575

7676
@Bean
7777
public ExampleService after(MockitoBeans mockedBeans) {
78-
ExampleService mock = mock(ExampleService.class, MockReset.before());
78+
ExampleService mock = mock(ExampleService.class, MockReset.after());
7979
mockedBeans.add(mock);
8080
return mock;
8181
}
8282

8383
@Bean
8484
public ExampleService none(MockitoBeans mockedBeans) {
85-
ExampleService mock = mock(ExampleService.class, MockReset.before());
85+
ExampleService mock = mock(ExampleService.class);
8686
mockedBeans.add(mock);
87-
return mock(ExampleService.class);
87+
return mock;
8888
}
8989

9090
@Bean

0 commit comments

Comments
 (0)