Files
gerrit/java
Alice Kober-Sotzek a8f3719dc4 Custom Truth subjects: use new Subject#check approach
Truth has evolved since we first started to write custom Truth subjects
and the recommended way to create chained subjects has changed.
According to [1], the recommended way is to use Subject#check as thus
the FailureStrategy is retained and (most importantly for us) a nice
failure message listing the complete chain of objects/methods is
generated.

Example for a reference in a failure message
before this change:
  path

with this change:
  robotCommentInfos.onlyElement().fixSuggestions().onlyElement()
    .replacements().onlyElement().path()

[1] https://google.github.io/truth/extension

Change-Id: I9a3b7a877af48a7e5f7d334cf210aa4a5867abb5
2019-03-22 15:14:35 +01:00
..
2018-12-21 13:54:37 -08:00
2018-11-13 15:06:26 -08:00
2018-08-14 08:07:59 +02:00