rename returning first non empty optional test method
This commit is contained in:
parent
392928ccfa
commit
c03477e2bd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user