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