Truth 0.32
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 ofhasMessage(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 toSubjectFactory
- make
MultimapSubject
useusingCorrespondence()
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)
anddoesNotContainCell(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 obeynamed()
Misc
- Code all formated with google-java-format
- some error-prone notified improvemetns
For details, see the complete list of included commits.