diff --git a/src/test/java/org/kiwiproject/test/junit/jupiter/params/provider/MinimalBlankStringArgumentsProviderTest.java b/src/test/java/org/kiwiproject/test/junit/jupiter/params/provider/MinimalBlankStringArgumentsProviderTest.java index 2c76326..434143e 100644 --- a/src/test/java/org/kiwiproject/test/junit/jupiter/params/provider/MinimalBlankStringArgumentsProviderTest.java +++ b/src/test/java/org/kiwiproject/test/junit/jupiter/params/provider/MinimalBlankStringArgumentsProviderTest.java @@ -13,16 +13,16 @@ class MinimalBlankStringArgumentsProviderTest { @ParameterizedTest @ArgumentsSource(MinimalBlankStringArgumentsProvider.class) void shouldProvideBlankArguments(String blankString) { - assertThat(blankString).isBlank(); - - if (nonNull(blankString)) { - assertOnlyCharactersIn(blankString); - } + assertProvidesBlankArguments(blankString); } @ParameterizedTest @MinimalBlankStringSource void shouldProvideBlankArgumentsUsingAnnotation(String blankString) { + assertProvidesBlankArguments(blankString); + } + + private void assertProvidesBlankArguments(String blankString) { assertThat(blankString).isBlank(); if (nonNull(blankString)) {