🎨 Use explicit types on lambda arguments

This commit is contained in:
Kyle Scully
2021-10-23 08:27:14 -07:00
committed by GitHub
parent 44e4ee4416
commit 3039dd018e
5 changed files with 7 additions and 7 deletions

View File

@ -237,7 +237,7 @@ public class BaseWxMpServiceImplTest {
RequestExecutor<Object, Object> re = mock(RequestExecutor.class);
AtomicInteger counter = new AtomicInteger();
Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer(invocation -> {
Mockito.when(re.execute(Mockito.anyString(), Mockito.any(), Mockito.any())).thenAnswer((InvocationOnMock invocation) -> {
counter.incrementAndGet();
WxError error = WxError.builder().errorCode(WxMpErrorMsgEnum.CODE_40001.getCode()).errorMsg(WxMpErrorMsgEnum.CODE_40001.getMsg()).build();
throw new WxErrorException(error);