Merge pull request #6842 from izeye/fix-test-20160908
* pr/6842: Fix ResetMocksTestExecutionListenerTests
This commit is contained in:
commit
6ec3648a10
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue