Mockito Polishing
`$ find spring-integration-* | grep '\.java$' | xargs sed -E -i '' -e 's/(\(?)\(([^<()]*)\) *invocation.getArguments\(\)\[([0-9]*)\]/\1invocation.getArgumentAt(\3, \2.class)/'`
This commit is contained in:
committed by
Artem Bilan
parent
9225c514fe
commit
c5fbd93787
@@ -119,7 +119,7 @@ public class UriVariableTests {
|
||||
Mockito.doAnswer(new Answer<Object>() {
|
||||
@Override
|
||||
public Object answer(InvocationOnMock invocation) throws Throwable {
|
||||
uri.set((String) invocation.getArguments()[0]);
|
||||
uri.set(invocation.getArgumentAt(0, String.class));
|
||||
throw new WebServiceIOException("intentional");
|
||||
}
|
||||
}).when(webServiceTemplate)
|
||||
|
||||
Reference in New Issue
Block a user