getExpected

@Nullable
abstract fun getExpected(): String(source)

Returns a string representation of the expected value for an assertion failure.

If the current instance does not represent an assertion failure, or the test failure doesn't provide any information about expected and actual values then the method returns null.

Return

The expected value