mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-25 19:09:03 +00:00
Fix forward merge of new SpyBean test to use correct Mockito 2 API
This commit is contained in:
+2
-2
@@ -42,8 +42,8 @@ public class SpyBeanWithNameOnTestFieldForMultipleExistingBeansTests {
|
||||
|
||||
@Test
|
||||
public void testSpying() throws Exception {
|
||||
assertThat(new MockUtil().isSpy(this.spy)).isTrue();
|
||||
assertThat(new MockUtil().getMockName(this.spy).toString()).isEqualTo("two");
|
||||
assertThat(MockUtil.isSpy(this.spy)).isTrue();
|
||||
assertThat(MockUtil.getMockName(this.spy).toString()).isEqualTo("two");
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
||||
Reference in New Issue
Block a user