Changes for suggestions on BAEL-998 (#4250)

This commit is contained in:
Shreyash 2018-05-15 22:45:00 +05:30 committed by Grzegorz Piwowarek
parent 3c9a2f3215
commit 8b324a315b
1 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import io.vavr.collection.HashMap;
import io.vavr.collection.LinkedHashSet;
import io.vavr.collection.List;
import io.vavr.collection.Map;
import io.vavr.collection.Set;
import io.vavr.collection.Stream;
public class CollectionsInteroperabilityUnitTest {
@ -77,8 +78,9 @@ public class CollectionsInteroperabilityUnitTest {
@Test
public void givenParams_WhenVavarListConvertedToLinkedSet_thenReturnLinkedSet() {
List<String> vavrList = List.of("Java", "Haskell", "Scala", "Java");
LinkedHashSet<String> linkedSet = (LinkedHashSet<String>) vavrList.toLinkedSet();
Set<String> linkedSet = vavrList.toLinkedSet();
assertEquals(3, linkedSet.size());
assertTrue(linkedSet instanceof LinkedHashSet);
}
@Test