Fix forward merge of new SpyBean test to use correct Mockito 2 API

This commit is contained in:
Andy Wilkinson 2017-02-21 20:48:58 +00:00
parent 1e806bbbd2
commit fcd1eb79fc
1 changed files with 2 additions and 2 deletions

View File

@ -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