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