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