R
- The return type.public class FluentIntegerAssertion<R> extends FluentComparableAssertion<R>
Constructor and Description |
---|
FluentIntegerAssertion(Assertion creator,
Integer value,
R returns)
Constructor.
|
FluentIntegerAssertion(Integer 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> |
msg(String msg,
Object... args)
Allows to to specify the assertion failure message.
|
FluentIntegerAssertion<R> |
stderr()
If an error occurs, send the error message to STDERR.
|
FluentIntegerAssertion<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 FluentIntegerAssertion(Integer value, R returns)
value
- The value being tested.returns
- The object to return after the test.public FluentIntegerAssertion(Assertion creator, Integer value, R returns)
creator
- The assertion that created this assertion.value
- The value being tested.returns
- The object to return after the test.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 FluentIntegerAssertion<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 FluentIntegerAssertion<R> stderr()
Assertion
stderr
in class FluentComparableAssertion<R>
public FluentIntegerAssertion<R> stdout()
Assertion
stdout
in class FluentComparableAssertion<R>
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.