差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
最後一次修改 Both sides next revision
java:wiremock:record-disconnection-behavior [2021/08/14 00:38]
tony [Problem]
java:wiremock:record-disconnection-behavior [2021/08/15 15:56]
tony
行 78: 行 78:
  
     private Fault getFault(ResponseDefinition responseDef) {     private Fault getFault(ResponseDefinition responseDef) {
-    String body = Objects.toString(responseDef.getBody(), ""​);​+    String body = Objects.toString(new String(responseDef.getByteBody()), ""​);​
     try {     try {
  return Fault.valueOf(body);​  return Fault.valueOf(body);​