Commit 8400bdac authored by liwenbin's avatar liwenbin

ix

parent 210a7969
...@@ -91,7 +91,7 @@ public class HttpClientConfig { ...@@ -91,7 +91,7 @@ public class HttpClientConfig {
return true; return true;
HttpClientContext clientContext = HttpClientContext.adapt(arg2); HttpClientContext clientContext = HttpClientContext.adapt(arg2);
HttpRequest request = clientContext.getRequest(); HttpRequest request = clientContext.getRequest();
if (!(request instanceof HttpEntityEnclosingRequest)) // 如果请求被认为是幂等的,那么就重试。即重复执行不影响程序其他效果的 if (!(request instanceof HttpEntityEnclosingRequest)) // 如果请求被认为是幂等的,那么就重试。即重复执行不影响程序其他效果的
return true; return true;
return false; return false;
} }
......
...@@ -33,7 +33,7 @@ import java.util.Map; ...@@ -33,7 +33,7 @@ import java.util.Map;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = AssetDistributionBootstrap.class) @SpringBootTest(classes = AssetDistributionBootstrap.class)
public class NiwodaiTest { public class NiwodaiTest {
@Autowired @Autowired
private INiwodaiService niwodaiService; private INiwodaiService niwodaiService;
@Autowired @Autowired
...@@ -53,7 +53,7 @@ public class NiwodaiTest { ...@@ -53,7 +53,7 @@ public class NiwodaiTest {
private void init() { private void init() {
userSdkService = UserSdkServiceFactory.generateSDKService(userSysUrl, httpClient); userSdkService = UserSdkServiceFactory.generateSDKService(userSysUrl, httpClient);
} }
@Test @Test
public void testCheck() throws Exception { public void testCheck() throws Exception {
NiwodaiDataImportCheckResponseVO responseVO = niwodaiAssetService.preAudit("9f7f857c-10c3-42aa-8fc5-31c37e988b3e"); NiwodaiDataImportCheckResponseVO responseVO = niwodaiAssetService.preAudit("9f7f857c-10c3-42aa-8fc5-31c37e988b3e");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment