R
- The return type.public class FluentLongAssertion<R> extends FluentComparableAssertion<R>
Constructor and Description |
---|
FluentLongAssertion(Assertion creator,
Long value,
R returns)
Constructor.
|
FluentLongAssertion(Long value,
R returns)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected int |
compareTo(Object value)
Perform a comparison with the specified object.
|
protected Object |
equivalent(Object o)
Subclasses can override this method to provide special conversions on objects being compared.
|
FluentIntegerAssertion<R> |
integer()
Converts this long into an integer and then returns it as an integer assertion.
|
FluentLongAssertion<R> |
msg(String msg,
Object... args)
Allows to to specify the assertion failure message.
|
FluentLongAssertion<R> |
stderr()
If an error occurs, send the error message to STDERR.
|
FluentLongAssertion<R> |
stdout()
If an error occurs, send the error message to STDOUT.
|
isBetween, isGreaterThan, isGreaterThanOrEqual, isGt, isGte, isLessThan, isLessThanOrEqual, isLt, isLte
doesNotEqual, doesNotExist, 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 FluentLongAssertion(Long value, R returns)
value
- The value being tested.returns
- The object to return after the test.public FluentLongAssertion(Assertion creator, Long value, R returns)
creator
- The assertion that created this assertion.value
- The value being tested.returns
- The object to return after the test.public FluentIntegerAssertion<R> integer()
protected int compareTo(Object value)
FluentComparableAssertion
compareTo
in class FluentComparableAssertion<R>
value
- The object to compare against.protected Object equivalent(Object o)
FluentObjectAssertion
equivalent
in class FluentObjectAssertion<R>
o
- The object to cast.public FluentLongAssertion<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 FluentLongAssertion<R> stderr()
Assertion
stderr
in class FluentComparableAssertion<R>
public FluentLongAssertion<R> stdout()
Assertion
stdout
in class FluentComparableAssertion<R>
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.