Added a simple NullSource test.

This commit is contained in:
Ali Dehghani 2019-04-25 18:26:58 +04:30
parent 92c8e8757e
commit bee2f9fc57
1 changed files with 5 additions and 1 deletions

View File

@ -86,7 +86,11 @@ class StringsUnitTest {
assertEquals(expected, actualValue);
}
@ParameterizedTest
@NullSource
void isBlank_ShouldReturnTrueForNullInputs(String input) {
assertTrue(Strings.isBlank(input));
}
private static Stream<Arguments> provideStringsForIsBlank() {
return Stream.of(