Polishing

This commit is contained in:
Juergen Hoeller
2017-01-31 12:00:13 +01:00
parent 9243a14794
commit f84907a1fc
8 changed files with 88 additions and 80 deletions

View File

@@ -45,6 +45,7 @@ public interface MultiValueMap<K, V> extends Map<K, List<V>> {
* Add all the values of the given list to the current list of values for the given key.
* @param key they key
* @param values the values to be added
* @since 5.0
*/
void addAll(K key, List<V> values);

View File

@@ -23,23 +23,17 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.*;
/**
* @author Arjen Poutsma
*/
public class LinkedMultiValueMapTests {
private LinkedMultiValueMap<String, String> map;
private final LinkedMultiValueMap<String, String> map = new LinkedMultiValueMap<String, String>();
@Before
public void setUp() {
map = new LinkedMultiValueMap<>();
}
@Test
public void add() {