public class BooleanAssertion extends FluentBooleanAssertion<BooleanAssertion>
Constructor and Description |
---|
BooleanAssertion(Boolean value)
Creator.
|
Modifier and Type | Method and Description |
---|---|
static BooleanAssertion |
create(Boolean value)
Creator.
|
BooleanAssertion |
msg(String msg,
Object... args)
Allows to to specify the assertion failure message.
|
protected BooleanAssertion |
returns()
Returns the object that the fluent methods on this class should return.
|
BooleanAssertion |
stderr()
If an error occurs, send the error message to STDERR.
|
BooleanAssertion |
stdout()
If an error occurs, send the error message to STDOUT.
|
isFalse, isTrue
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
assertNotNull, assertNotNull, className, error
public BooleanAssertion(Boolean value)
value
- The object being wrapped.public static BooleanAssertion create(Boolean value)
value
- The object being wrapped.BooleanAssertion
object.protected BooleanAssertion returns()
FluentAssertion
returns
in class FluentAssertion<BooleanAssertion>
public BooleanAssertion msg(String msg, Object... args)
Assertion
String can contain
msg
in class FluentBooleanAssertion<BooleanAssertion>
msg
- The assertion failure message.args
- Optional message arguments.public BooleanAssertion stderr()
Assertion
stderr
in class FluentBooleanAssertion<BooleanAssertion>
public BooleanAssertion stdout()
Assertion
stdout
in class FluentBooleanAssertion<BooleanAssertion>
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.