List of usage examples for org.apache.commons.collections4.bag TreeBag TreeBag
public TreeBag(final Collection<? extends E> coll)
From source file:com.evolveum.midpoint.model.impl.lens.TestAssignmentProcessor2.java
private <T> void assertUnsortedListsEquals(String message, Collection<String> expected, Collection<T> real, Function<T, String> nameExtractor) { Bag<String> expectedAsBag = new TreeBag<>(CollectionUtils.emptyIfNull(expected)); Bag<String> realAsBag = new TreeBag<>(real.stream().map(nameExtractor).collect(Collectors.toList())); assertEquals(message, expectedAsBag, realAsBag); }