BAEL-998
This commit is contained in:
parent
257bc7cc0f
commit
73db2e159f
|
@ -4,6 +4,7 @@ import static org.junit.Assert.assertEquals;
|
|||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -80,4 +81,11 @@ public class CollectionsInteroperabilityUnitTest {
|
|||
assertEquals(3, linkedSet.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenParams_WhenVavrList_thenReturnJavaOptional() {
|
||||
List<String> vavrList = List.of("Java");
|
||||
Optional<String> optional = vavrList.toJavaOptional();
|
||||
assertEquals("Java", optional.get());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue