Example usage for org.springframework.util CollectionUtils toMultiValueMap

List of usage examples for org.springframework.util CollectionUtils toMultiValueMap

Introduction

In this page you can find the example usage for org.springframework.util CollectionUtils toMultiValueMap.

Prototype

public static <K, V> MultiValueMap<K, V> toMultiValueMap(Map<K, List<V>> map) 

Source Link

Document

Adapt a Map> to an MultiValueMap .

Usage

From source file:org.awesomeagile.webapp.security.AwesomeAgileConnectionRepositoryTest.java

@Test
public void testFindConnectionsToUsers() throws Exception {
    MultiValueMap<String, Connection<?>> connectionsToUsers = connectionRepository.findConnectionsToUsers(
            CollectionUtils.toMultiValueMap(ImmutableMap.of(PROVIDER_ONE, ImmutableList.of(providerUserId()))));
    assertTrue(connectionsToUsers.isEmpty());
}