mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Avoid deprecated Mockito methods
Issue: SPR-14880
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+2
-2
@@ -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