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