Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created October 20, 2020 11:47
Show Gist options
  • Save le0nidas/24e7ee3947acd38e35f0d977501bd17e to your computer and use it in GitHub Desktop.
Save le0nidas/24e7ee3947acd38e35f0d977501bd17e to your computer and use it in GitHub Desktop.
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