wujimin commented on a change in pull request #673: [SCB-504] upgrade spring 
boot version
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/673#discussion_r185727540
 
 

 ##########
 File path: 
integration-tests/springmvc-tests/src/test/java/org/apache/servicecomb/demo/springmvc/tests/SpringMvcIntegrationTestBase.java
 ##########
 @@ -329,14 +325,10 @@ public void blowsUpWhenFileNameDoesNotMatch() throws 
Exception {
     HttpHeaders headers = new HttpHeaders();
     headers.setContentType(MediaType.MULTIPART_FORM_DATA);
 
-    try {
-      restTemplate.postForObject(
-          codeFirstUrl + "uploadWithoutAnnotation",
-          new HttpEntity<>(map, headers),
-          String.class);
-      expectFailing(UnknownHttpStatusCodeException.class);
-    } catch (RestClientException ignored) {
-    }
+    ResponseEntity<String> response = restTemplate
+        .postForEntity(codeFirstUrl + "uploadWithoutAnnotation", new 
HttpEntity<>(map, headers), String.class);
+    assertThat(response.getStatusCodeValue(), 
is(response.getStatusCodeValue()));
 
 Review comment:
   self equals self?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to