R
- The return type.public class FluentBooleanAssertion<R> extends FluentComparableAssertion<R>
Constructor and Description |
---|
FluentBooleanAssertion(Assertion creator,
Boolean value,
R returns)
Constructor.
|
FluentBooleanAssertion(Boolean value,
R returns)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
R |
isFalse()
Asserts that the value is false.
|
R |
isTrue()
Asserts that the value is true.
|
FluentBooleanAssertion<R> |
msg(String msg,
Object... args)
Allows to to specify the assertion failure message.
|
FluentBooleanAssertion<R> |
stderr()
If an error occurs, send the error message to STDERR.
|
FluentBooleanAssertion<R> |
stdout()
If an error occurs, send the error message to STDOUT.
|
compareTo, isBetween, isGreaterThan, isGreaterThanOrEqual, isGt, isGte, isLessThan, isLessThanOrEqual, isLt, isLte
doesNotEqual, doesNotExist, equivalent, exists, is, isAny, isEqual, isNot, isNotAny, isNotNull, isNull, isType, json, jsonSorted, passes, passes, sameAs, sameAsSerialized, sameAsSorted, serialized, string, string, string
returns
assertNotNull, assertNotNull, className, error
public FluentBooleanAssertion(Boolean value, R returns)
value
- The value being tested.returns
- The object to return after the test.public FluentBooleanAssertion(Assertion creator, Boolean value, R returns)
creator
- The assertion that created this assertion.value
- The value being tested.returns
- The object to return after the test.public R isTrue() throws AssertionError
AssertionError
- If assertion failed.public R isFalse() throws AssertionError
AssertionError
- If assertion failed.public FluentBooleanAssertion<R> msg(String msg, Object... args)
Assertion
String can contain
msg
in class FluentComparableAssertion<R>
msg
- The assertion failure message.args
- Optional message arguments.public FluentBooleanAssertion<R> stderr()
Assertion
stderr
in class FluentComparableAssertion<R>
public FluentBooleanAssertion<R> stdout()
Assertion
stdout
in class FluentComparableAssertion<R>
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.