caimo commented on code in PR #4633:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/4633#discussion_r1870720263


##########
core/src/test/java/org/apache/servicecomb/core/exception/ExceptionsTest.java:
##########
@@ -64,8 +72,15 @@ void 
should_convert_unknown_server_exception_to_invocation_exception() {
     assertThat(invocationException).hasCause(exception);
     
assertThat(invocationException.getStatus()).isEqualTo(INTERNAL_SERVER_ERROR);
     
assertThat(invocationException.getErrorData()).isInstanceOf(CommonExceptionData.class);
-    assertThat(Json.encode(invocationException.getErrorData()))
-        .isEqualTo("{\"code\":\"SCB.50000000\",\"message\":\"Unexpected 
exception when processing none. msg\"}");
+
+    ObjectMapper objectMapper = new ObjectMapper();

Review Comment:
   objectMapper no need create in each test case.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to