Fix forward merge of new SpyBean test to use correct Mockito 2 API
This commit is contained in:
@@ -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