public class OptionalShouldBePresent extends BasicErrorMessageFactory
Optional
.arguments, format
Modifier and Type | Method and Description |
---|---|
static OptionalShouldBePresent |
shouldBePresent(Object optional)
Indicates that a value should be present in an empty
Optional . |
create, create, create, equals, hashCode, toString, unquotedString
public static OptionalShouldBePresent shouldBePresent(Object optional)
Optional
.optional
- NullPointerException
- if optional is null.Copyright © 2014–2016 AssertJ. All rights reserved.