Fix ResetMocksTestExecutionListenerTests

Align test implementation with names.

Closes gh-6842
This commit is contained in:
Johnny Lim
2016-09-08 12:20:06 +09:00
committed by Phillip Webb
parent 91e6a5fbee
commit 11aa4d0749

View File

@@ -75,16 +75,16 @@ public class ResetMocksTestExecutionListenerTests {
@Bean
public ExampleService after(MockitoBeans mockedBeans) {
ExampleService mock = mock(ExampleService.class, MockReset.before());
ExampleService mock = mock(ExampleService.class, MockReset.after());
mockedBeans.add(mock);
return mock;
}
@Bean
public ExampleService none(MockitoBeans mockedBeans) {
ExampleService mock = mock(ExampleService.class, MockReset.before());
ExampleService mock = mock(ExampleService.class);
mockedBeans.add(mock);
return mock(ExampleService.class);
return mock;
}
@Bean