R
- The return type.public abstract class FluentAssertion<R> extends Assertion
Modifier | Constructor and Description |
---|---|
protected |
FluentAssertion(Assertion creator,
R returns)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FluentAssertion<R> |
msg(String msg,
Object... args)
Allows to to specify the assertion failure message.
|
protected R |
returns()
Returns the object that the fluent methods on this class should return.
|
FluentAssertion<R> |
stderr()
If an error occurs, send the error message to STDERR.
|
FluentAssertion<R> |
stdout()
If an error occurs, send the error message to STDOUT.
|
assertNotNull, assertNotNull, className, error
protected FluentAssertion(Assertion creator, R returns)
creator
- The assertion that created this assertion.returns
- The object to return after the test.protected R returns()
public FluentAssertion<R> msg(String msg, Object... args)
Assertion
String can contain
public FluentAssertion<R> stderr()
Assertion
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.