Skip to content

Commit 2aa3f40

Browse files
committed
Polishing
1 parent 3842f12 commit 2aa3f40

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spring-test/src/test/java/org/springframework/test/context/bean/override/example/ExampleService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* Example service interface for mocking tests.
2121
*
2222
* @author Phillip Webb
23+
* @since 6.2
2324
*/
2425
public interface ExampleService {
2526

spring-test/src/test/java/org/springframework/test/context/bean/override/mockito/MockitoSpyBeanForFactoryBeanIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.junit.jupiter.api.Order;
2121
import org.junit.jupiter.api.Test;
2222
import org.junit.jupiter.api.TestMethodOrder;
23-
import org.mockito.Mockito;
2423

2524
import org.springframework.beans.factory.FactoryBean;
2625
import org.springframework.beans.factory.annotation.Autowired;
@@ -32,6 +31,7 @@
3231

3332
import static org.assertj.core.api.Assertions.assertThat;
3433
import static org.mockito.Mockito.doReturn;
34+
import static org.mockito.Mockito.times;
3535
import static org.mockito.Mockito.verify;
3636

3737
/**
@@ -63,7 +63,7 @@ void beanReturnedByFactoryIsSpied() {
6363
doReturn("sp-hi").when(this.testBean).hello();
6464

6565
assertThat(bean.hello()).as("after stubbing").isEqualTo("sp-hi");
66-
verify(bean, Mockito.times(2)).hello();
66+
verify(bean, times(2)).hello();
6767
}
6868

6969
@Order(2)

0 commit comments

Comments
 (0)