EitherTest: add missing test display name values (#223)
This commit is contained in:
parent
786569a995
commit
913df97a1d
1 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue