google / google/truth

FutureSubject

Open
#171 0 comments 1 reaction 0 assignees View on GitHub
P3 type=addition
Dominant language
Java
Stars
2.8k
Forks
275
Avg merge
7m
Merged PRs (30d)
4

Description

Someone just commented internally that this would be handy for testing `AbstractFuture`. \[edit: Well, maybe not for that specifically, in light of https://github.com/google/truth/issues/268. But it's useful for plenty of other things.\] Someone else has evidently had the same thought, adding a project-local `FutureSubject` with the following API:
- `isDone`
- `isPending`
- `hasValue(Object)`
- `failedWith(Class)`
- `isFailed`
- `isCancelled`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.