Avoid deprecated Mockito methods
Issue: SPR-14880
This commit is contained in:
@@ -55,7 +55,7 @@ public class ProtobufHttpMessageConverterTests {
|
||||
|
||||
@Test
|
||||
public void extensionRegistryInitialized() {
|
||||
verify(this.registryInitializer, times(1)).initializeExtensionRegistry(anyObject());
|
||||
verify(this.registryInitializer, times(1)).initializeExtensionRegistry(any());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -148,10 +148,10 @@ public class ModelAttributeMethodProcessorTests {
|
||||
public void resovleArgumentViaDefaultConstructor() throws Exception {
|
||||
WebDataBinder dataBinder = new WebRequestDataBinder(null);
|
||||
WebDataBinderFactory factory = mock(WebDataBinderFactory.class);
|
||||
given(factory.createBinder(anyObject(), notNull(), eq("attrName"))).willReturn(dataBinder);
|
||||
given(factory.createBinder(any(), notNull(), eq("attrName"))).willReturn(dataBinder);
|
||||
|
||||
this.processor.resolveArgument(this.paramNamedValidModelAttr, this.container, this.request, factory);
|
||||
verify(factory).createBinder(anyObject(), notNull(), eq("attrName"));
|
||||
verify(factory).createBinder(any(), notNull(), eq("attrName"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user