@Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,PARAMETER}) public @interface Nullable
ParametersExample:
@Test
@Parameters({" null "})
public void shouldBeNull( @Nullable String value) {
assertThat(value).isNull();
}
| Modifier and Type | Optional Element and Description |
|---|---|
String |
nullIdentifier
Defines parameter value which will be replaced by Java null
|
public abstract String nullIdentifier
Copyright © 2017 Pragmatists. All rights reserved.