Skip to content

Truth 0.32

Compare
Choose a tag to compare
@cgruber cgruber released this 23 Feb 06:31
· 1100 commits to master since this release

Maven Release

New Subjects

  • OptionalIntSubject (in java8 extension)
  • StreamSubject (in java8 extension)

Changes to existing Subjects and Core classes

  • add .hasValueThat() methods to primitive optionals which chain to the appropriate subject
  • ThrowableSubject.hasMessageThat() which chains to StringSubject, in place of hasMessage(String)
  • ThrowableSubject.hasCauseThat() which chains to ThrowableSubject around the cause
  • make isInstanceof() and related methods abort hard, under -XdisableClassMetadata.
  • Introduce DelegatedVerbFactory as a more powerful (but looser) alternative to SubjectFactory
  • make MultimapSubject use usingCorrespondence() to allow custom "Fuzzy" equality for contains ops.
  • Allow usingExactEquality on floating point subjects take Number subtypes, not just floating point types.
  • Allow one-arg isEqualTo() to be used for primitive arrays of floating point types, implementing an agreed
    upon algorithm
  • Add containsCell(Cell) and doesNotContainCell(Cell) to TableSubject.
  • Include more readable hexadecimals when isEqualTo fails on a byte[].

New Extensions

  • Protocol Buffers
    • Support for lite and heavy (with proto-reflection) protocol buffers
    • IterableProtoSubject

Fixes

  • Make asList() chaining methods obey named()

Misc

  • Code all formated with google-java-format
  • some error-prone notified improvemetns

For details, see the complete list of included commits.