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