use of me.chanjar.weixin.common.util.http.RequestExecutor in project weixin-java-tools by chanjarster.
the class WxMpBusyRetryTest method getService.
@DataProvider(name = "getService")
public Object[][] getService() {
WxMpService service = new WxMpServiceImpl() {
@Override
protected <T, E> T executeInternal(RequestExecutor<T, E> executor, String uri, E data) throws WxErrorException {
WxError error = new WxError();
error.setErrorCode(-1);
throw new WxErrorException(error);
}
};
service.setMaxRetryTimes(3);
service.setRetrySleepMillis(500);
return new Object[][] { new Object[] { service } };
}
use of me.chanjar.weixin.common.util.http.RequestExecutor in project weixin-java-tools by chanjarster.
the class WxCpBusyRetryTest method getService.
@DataProvider(name = "getService")
public Object[][] getService() {
WxCpService service = new WxCpServiceImpl() {
@Override
protected <T, E> T executeInternal(RequestExecutor<T, E> executor, String uri, E data) throws WxErrorException {
WxError error = new WxError();
error.setErrorCode(-1);
throw new WxErrorException(error);
}
};
service.setMaxRetryTimes(3);
service.setRetrySleepMillis(500);
return new Object[][] { new Object[] { service } };
}
Aggregations