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

View File

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