Truth 1.0-rc1
cpovirk
released this
27 Jun 19:04
·
574 commits
to master
since this release
We expect to release 1.0 (and publish an official announcement) on Monday, July 8.
- Made
assertThat(0.0).isEqualTo(0)
pass, despite the mix ofdouble
andint
. (And likewise forfloat
andint
.) This extends existing support that previously applied only to integral types. (1c5f9e8) - Added
int
overloads ofisGreaterThan
,isLessThan
,isAtLeast
, andisAtMost
. (dc92786) - Removed the overload of
StandardSubjectBuilder.fail(...)
that accepts a message. Instead ofassert_().fail(...)
, useassertWithMessage(...).fail()
. Similarly, instead ofexpect.fail(...)
, useexpect.withMessage(...).fail()
, and so forth. (f6875d6) - Removed
DefaultSubject
. Use plainSubject
. (f6875d6) - Removed
AtomicLongMapSubject
. In most cases, you can assert on theasMap()
view instead. (f6875d6) - Removed
Optional*Subject.hasValueThat()
. Instead ofassertThat(optional).hasValueThat()....
, useassertThat(optional.getAs*())....
. (f6875d6)