Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created October 20, 2020 11:56
Show Gist options
  • Save le0nidas/af368237b72e842a969fb84c4a9df4a3 to your computer and use it in GitHub Desktop.
Save le0nidas/af368237b72e842a969fb84c4a9df4a3 to your computer and use it in GitHub Desktop.
internal class CreateNameTest {
@ParameterizedTest
@NullAndEmptySource
@ValueSource(strings = [" "])
fun `there is no creation when the provided value is null or empty or blank`(providedValue: String?) {
assertThat(createName(providedValue), absent())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment