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


##########
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:
   Should I create a static variable available to the entire test class like 
this?
   
   
![image](https://github.com/user-attachments/assets/c4eda876-b16f-4155-a15c-c9f681a69592)
   



-- 
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