Formatting output so that Intellij Idea shows diffs for two texts

后端 未结 2 1232
暖寄归人
暖寄归人 2021-02-04 02:09

I would like to be able to print in the logs a message for which intellij idea would present a nice way of comparing two objects (strings). This happens automatically for the er

2条回答
  •  深忆病人
    2021-02-04 02:38

    I had the same Problem and found the solution in https://github.com/joel-costigliola/assertj-core/issues/1364#issuecomment-440800958

    You should throw an org.junit.ComparisonFailure. Then IntelliJ will display the

提交回复
热议问题