EitherTest: add missing test display name values (#223)

This commit is contained in:
Paul Campbell 2021-08-19 10:24:10 +01:00 committed by GitHub
parent 786569a995
commit 913df97a1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,7 +209,7 @@ class EitherTest implements WithAssertions {
} }
@Nested @DisplayName("getLeft") public class GetLeft { @Nested @DisplayName("getLeft") public class GetLeft {
@Test @Test
@DisplayName("") @DisplayName("when is a Left then get the value")
public void whenLeft_thenGetValue() { public void whenLeft_thenGetValue() {
//given //given
Either<String, Integer> either = Either.left("value"); Either<String, Integer> either = Either.left("value");
@ -220,7 +220,7 @@ class EitherTest implements WithAssertions {
} }
@Test @Test
@DisplayName("") @DisplayName("when is a Right then is empty")
public void whenRight_thenGetEmpty() { public void whenRight_thenGetEmpty() {
//given //given
Either<Integer, String> either = Either.right("value"); Either<Integer, String> either = Either.right("value");
@ -232,7 +232,7 @@ class EitherTest implements WithAssertions {
} }
@Nested @DisplayName("getRight") public class GetRight { @Nested @DisplayName("getRight") public class GetRight {
@Test @Test
@DisplayName("") @DisplayName("when is a Left then is empty")
public void whenLeft_thenGetEmpty() { public void whenLeft_thenGetEmpty() {
//given //given
Either<String, Integer> either = Either.left("value"); Either<String, Integer> either = Either.left("value");
@ -243,7 +243,7 @@ class EitherTest implements WithAssertions {
} }
@Test @Test
@DisplayName("") @DisplayName("when is a Right then get the value")
public void whenRight_thenGetValue() { public void whenRight_thenGetValue() {
//given //given
Either<Integer, String> either = Either.right("value"); Either<Integer, String> either = Either.right("value");