google / google/truth

Add OptionalSubject.hasValueThat() (which returns a Subject)

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

Description

Would it be possible to add something similary to Subject.isSameAs to the OptionalSubject? In my api I have been switching methods to return Optional and I'm noticing that some of the asserts would be much easier if OptionalSubject had a method like isSameAs. It should assert that the value is the same instance as another value.

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.