forked from google/truth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Externally remove deprecated
AtomicLongMapSubject
, DefaultSubject
…
…, `StandardSubjectBuilder.fail(...)` overload that accepts arguments, and `Optional*Subject.hasValueThat()` Fixes google#204 Relnotes: - 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. - Removed `DefaultSubject`. Use plain `Subject`. - Removed `Optional*Subject.hasValueThat()`. Instead of `assertThat(optional).hasValueThat()....`, use `assertThat(optional.getAs*())....`. - Removed `AtomicLongMapSubject`. In most cases, you can [assert on the `asMap()` view instead](google#579). [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=254994279
- Loading branch information
Showing
18 changed files
with
32 additions
and
637 deletions.
There are no files selected for viewing
139 changes: 0 additions & 139 deletions
139
core/src/main/java/com/google/common/truth/AtomicLongMapSubject.java
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
core/src/main/java/com/google/common/truth/DefaultSubject.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.