package uk.ac.ebi.quickgo.rest;

import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * Created by rantunes on 29/11/15.
 */
public class TestUtil {
    public static <T> Set<T> asSet(T... elements) {
        return new HashSet<>(Arrays.asList(elements));
    }

    public static <T> Collection<T> convertToCollection(Stream<T> stream) {
        return stream.collect(Collectors.toList());
    }
}

@@ -47,91 +47,9 @@
 til.
-Arrays;%0Aimport java.util.Collection;%0Aimport java.util.HashSet;%0Aimport java.util.Set
+*
 ;%0Aim
@@ -254,16 +254,22 @@
 urn new 
+Linked
 HashSet%3C

Change internal storage of asSet() from HashSet to LinkedHasSet to preserve the order. This is just for testing purposes.