From 11aa4d074970a5486181b0551abca1870ddeac4c Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Thu, 8 Sep 2016 12:20:06 +0900 Subject: [PATCH] Fix ResetMocksTestExecutionListenerTests Align test implementation with names. Closes gh-6842 --- .../mock/mockito/ResetMocksTestExecutionListenerTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/ResetMocksTestExecutionListenerTests.java b/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/ResetMocksTestExecutionListenerTests.java index 90a75cc5bcc..025058aff32 100644 --- a/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/ResetMocksTestExecutionListenerTests.java +++ b/spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/ResetMocksTestExecutionListenerTests.java @@ -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