junitparams.converters
Annotation Type Nullable


@Retention(value=RUNTIME)
@Target(value={ANNOTATION_TYPE,PARAMETER})
public @interface Nullable

Allows test null values defined as a String array in Parameters

Author:
Peter Jurkovic

Example:

 @Test
 @Parameters({" null "})
 public void shouldBeNull(@Nullable String value) {
     assertThat(value).isNull();
 }
 


Optional Element Summary
 String nullIdentifier
          Defines parameter value which will be replaced by Java null
 

nullIdentifier

public abstract String nullIdentifier
Defines parameter value which will be replaced by Java null

Default:
"null"


Copyright © 2017 Pragmatists. All rights reserved.