java-tutorials/testing-modules/testing-assertions/src
Michaël Goossens b9fd869c02 Also consider string interpolation
The above example only works when logging a string without using string interpolation. For example the following log statement: log.debug("This is a log from {}", "David"). This would result in event.getMessage() returning "This is a log from {}" while you would like to see the processed form "This is a log from David". The getMessage().toString() only returns the former while toString() on the event will return the latter. Furthermore the toString() method is redundant on getMessage() as it already is a string.
2021-07-15 23:26:49 +02:00
..
main BAEL-3960 (#9070) 2020-05-04 17:03:21 +01:00
test Also consider string interpolation 2021-07-15 23:26:49 +02:00