From bee2f9fc57b623088107f13eb88da9465422b2bc Mon Sep 17 00:00:00 2001 From: Ali Dehghani Date: Thu, 25 Apr 2019 18:26:58 +0430 Subject: [PATCH] Added a simple NullSource test. --- .../java/com/baeldung/parameterized/StringsUnitTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing-modules/junit-5/src/test/java/com/baeldung/parameterized/StringsUnitTest.java b/testing-modules/junit-5/src/test/java/com/baeldung/parameterized/StringsUnitTest.java index 7d02a5a74b..96d0d4199a 100644 --- a/testing-modules/junit-5/src/test/java/com/baeldung/parameterized/StringsUnitTest.java +++ b/testing-modules/junit-5/src/test/java/com/baeldung/parameterized/StringsUnitTest.java @@ -86,7 +86,11 @@ class StringsUnitTest { assertEquals(expected, actualValue); } - + @ParameterizedTest + @NullSource + void isBlank_ShouldReturnTrueForNullInputs(String input) { + assertTrue(Strings.isBlank(input)); + } private static Stream provideStringsForIsBlank() { return Stream.of(