public class OptionalShouldContainInstanceOf extends BasicErrorMessageFactory
arguments, format
Modifier and Type | Method and Description |
---|---|
static OptionalShouldContainInstanceOf |
shouldContainInstanceOf(Object optional,
Class<?> clazz)
Indicates that a value should be present in an empty
Optional . |
create, create, create, equals, hashCode, toString, unquotedString
public static OptionalShouldContainInstanceOf shouldContainInstanceOf(Object optional, Class<?> clazz)
Optional
.optional
- Optional to be checked.NullPointerException
- if optional is null.Copyright © 2014–2017 AssertJ. All rights reserved.