-
-
Save le0nidas/24e7ee3947acd38e35f0d977501bd17e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class CreateNameTest { | |
@ParameterizedTest | |
@ValueSource(strings = ["null", "", " "]) | |
fun `there is no creation when the provided value is null or empty or blank`(providedValue: String?) { | |
val value: String? = if (providedValue == "null") | |
null else | |
providedValue | |
assertThat(createName(value), absent()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment