Skip to content

Truth 1.0-rc1

Compare
Choose a tag to compare
@cpovirk 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 of double and int. (And likewise for float and int.) This extends existing support that previously applied only to integral types. (1c5f9e8)
  • Added int overloads of isGreaterThan, isLessThan, isAtLeast, and isAtMost. (dc92786)
  • Removed the overload of StandardSubjectBuilder.fail(...) that accepts a message. Instead of assert_().fail(...), use assertWithMessage(...).fail(). Similarly, instead of expect.fail(...), use expect.withMessage(...).fail(), and so forth. (f6875d6)
  • Removed DefaultSubject. Use plain Subject. (f6875d6)
  • Removed AtomicLongMapSubject. In most cases, you can assert on the asMap() view instead. (f6875d6)
  • Removed Optional*Subject.hasValueThat(). Instead of assertThat(optional).hasValueThat()...., use assertThat(optional.getAs*())..... (f6875d6)