R
- The return type.public class FluentListAssertion<R> extends FluentCollectionAssertion<R>
Constructor and Description |
---|
FluentListAssertion(Assertion creator,
List contents,
R returns)
Constructor.
|
FluentListAssertion(List contents,
R returns)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FluentObjectAssertion<R> |
item(int index)
Returns an object assertion on the item specified at the specified index.
|
FluentListAssertion<R> |
msg(String msg,
Object... args)
Allows to to specify the assertion failure message.
|
FluentListAssertion<R> |
stderr()
If an error occurs, send the error message to STDERR.
|
FluentListAssertion<R> |
stdout()
If an error occurs, send the error message to STDOUT.
|
contains, doesNotContain, isEmpty, isNotEmpty, isSize
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 FluentListAssertion(List contents, R returns)
contents
- The byte array being tested.returns
- The object to return after the test.public FluentListAssertion(Assertion creator, List contents, R returns)
creator
- The assertion that created this assertion.contents
- The byte array being tested.returns
- The object to return after the test.public FluentObjectAssertion<R> item(int index)
If the list is FluentObjectAssertion.exists()
returns
index
- The index of the item to retrieve from the list.public FluentListAssertion<R> msg(String msg, Object... args)
Assertion
String can contain
msg
in class FluentCollectionAssertion<R>
msg
- The assertion failure message.args
- Optional message arguments.public FluentListAssertion<R> stderr()
Assertion
stderr
in class FluentCollectionAssertion<R>
public FluentListAssertion<R> stdout()
Assertion
stdout
in class FluentCollectionAssertion<R>
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.