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