public class OptionalShouldContainInstanceOf extends BasicErrorMessageFactory
arguments, format
Modifier and Type | Method and Description |
---|---|
static OptionalShouldContainInstanceOf |
shouldContainInstanceOf(Object value,
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 value, Class<?> clazz)
Optional
.value
- Optional to be checked.clazz
- the class to check the optional value againstNullPointerException
- if optional is null.Copyright © 2014–2019 AssertJ. All rights reserved.