rename returning first non empty optional test method

This commit is contained in:
danielmcnally285 2023-11-11 19:14:58 +00:00
parent 392928ccfa
commit c03477e2bd
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class ReturnFirstNonEmptyOptionalUnitTest {
}
@Test
void givenListOfOptionals_thenReturnFirstNonEmpty() {
void givenListOfOptionals_whenStreaming_thenReturnFirstNonEmpty() {
Optional<String> object = optionals.stream()
.filter(Optional::isPresent)
.map(Optional::get)