Skip to content

Truth 0.43

Compare
Choose a tag to compare
@cpovirk cpovirk released this 25 Feb 21:03
· 663 commits to master since this release
  • Updated more dependencies, especially to avoid conflicts with com.google.guava:listenablefuture. (4551488)
  • Added containsAtLeast and containsAtLeastEntriesIn to MapSubject and MultimapSubject. (d44be00)
  • Deleted Subject.failWithRawMessage. Its literal replacement is failWithoutActual(simpleFact(lenientFormat(message, parameters))), but most users will be able to find a shorter way to construct a better message, generally using failWithoutActual. (97f822f)
  • You can now create a Correspondence instance using a lambda or method reference, with the Correspondence.from factory method. (81ac47d)
  • You can now create a Correspondence instance that transforms the actual elements using a lambda or method reference and tests for equality with the expected elements, with the Correspondence.transforming factory method. (c60c71a)
  • You can now create a Correspondence instance that transforms the actual and expected elements using a lambda or method reference and tests for equality, with the Correspondence.transforming factory method. (780ecc2)
  • All Fuzzy Truth assertions now handle exceptions thrown by the functions used to pair elements for diffing (see the javadoc of IterableSubject.UsingCorrespondence.displayingDiffsPairedBy for details). (a675e32)
  • All Fuzzy Truth assertions now handle exceptions thrown by Correspondence.formatDiff (see the javadoc of that method for details). (5006a52)
  • All Fuzzy Truth assertions now handle exceptions thrown by Correspondence.compare (see the javadoc of that method for details). (a474ac1)
  • Enabled tests for ProtoTruth. (9412383)