Commit Graph

11 Commits

Author SHA1 Message Date
panos-kakos 9d4f599a1a [JAVA-16834] Added test case (#13192)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2023-01-04 20:59:16 +05:30
kwoyke 1871d1a89c Merge pull request #11468 from chaos2418/JAVA-8405
JAVA-8405: reducing logging for tutorials-build-job
2021-11-23 13:43:19 +01:00
davidmartinezbarua ffacd9b9ae Merge pull request #11413 from Trixi-Turny/BAEL-5209-assert-type-of-object
BAEL-5209 example with JUnit5, Hamcrest and AssertJ
2021-11-22 16:11:16 -03:00
chaos2418 58e6087b3d JAVA-8405: reducing logging for tutorials-build-job 2021-11-19 13:39:00 +05:30
lucaCambi77 157d7ee61c [BAEL-5211] - How to test a Java Optional (#11417)
* feat: add how to test an optional

* fix: review comments

* fix: static final naming convention

* fix: optional equals assertion
2021-11-14 10:09:48 +00:00
Trixi Turny 86ab50684b BAEL-5209 example with JUnit5, Hamcrest and AssertJ 2021-11-04 19:13:11 +00:00
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
Vishal aa223e69ea Add tests for AssertJ example and update assertj-core dependency version. 2020-08-23 10:35:43 +05:30
Vishal 3cbfd383ed Refactor | Add common formatting, remove comments, update test class name,follow test method naming convention and use Junit5 2020-08-17 18:06:30 +05:30
Vishal 6a2fcd54c3 Add unit test to assert two list equality without considering order of elements in it. 2020-08-12 09:57:39 +05:30
marc06210 b3f1413445 BAEL-3960 (#9070)
Bael-3960, asserting log messages with junit code.
2020-05-04 17:03:21 +01:00