Upgrade to Mockito 2.2
Issue: SPR-14880
This commit is contained in:
@@ -44,7 +44,7 @@ import org.junit.Ignore;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.ExpectedException;
|
||||
import org.mockito.Matchers;
|
||||
import org.mockito.ArgumentMatchers;
|
||||
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.MutablePropertyValues;
|
||||
@@ -1219,7 +1219,7 @@ public class DefaultListableBeanFactoryTests {
|
||||
public void testExpressionInStringArray() {
|
||||
DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
|
||||
BeanExpressionResolver beanExpressionResolver = mock(BeanExpressionResolver.class);
|
||||
when(beanExpressionResolver.evaluate(eq("#{foo}"), Matchers.any(BeanExpressionContext.class)))
|
||||
when(beanExpressionResolver.evaluate(eq("#{foo}"), ArgumentMatchers.any(BeanExpressionContext.class)))
|
||||
.thenReturn("classpath:/org/springframework/beans/factory/xml/util.properties");
|
||||
bf.setBeanExpressionResolver(beanExpressionResolver);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user