google / google/truth

Fix Javadoc comments that refer to the actual value under test to refer to "actual value" instead of "subject"

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

Description

Or more concisely: "`Subject.getSubject()`? Huh?"

I guess that we could make it `Subject.getActualValue()` (or just `getActual()` or `actual()`), which would go nicely with the typical parameter name of `expected`.

Alternatively, we could declare that `FooSubject` should be `FooAsserter` or something. (Apparently [assertj calls this `FooAssert`](http://joel-costigliola.github.io/assertj/assertj-assertions-generator.html), a name that I don't love: What is "an assert?")

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.