Fix forward merge of new SpyBean test to use correct Mockito 2 API
This commit is contained in:
parent
1e806bbbd2
commit
fcd1eb79fc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue