Skip to content

Commit 352c7cd

Browse files
committed
Polish "Add additional tests for MultiValueMap"
See gh-25160
1 parent 325edbe commit 352c7cd

File tree

3 files changed

+201
-216
lines changed

3 files changed

+201
-216
lines changed

spring-core/src/test/java/org/springframework/util/CollectionUtilsTests.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
import static org.assertj.core.api.Assertions.assertThat;
3636

3737
/**
38+
* Tests for {@link CollectionUtils}.
39+
*
3840
* @author Rob Harrop
3941
* @author Juergen Hoeller
4042
* @author Rick Evans
@@ -214,7 +216,7 @@ void hasUniqueObject() {
214216

215217
@Test
216218
void conversionOfEmptyMap() {
217-
MultiValueMap<String, List<String>> asMultiValueMap = CollectionUtils.toMultiValueMap(new HashMap<>());
219+
MultiValueMap<String, String> asMultiValueMap = CollectionUtils.toMultiValueMap(new HashMap<>());
218220
assertThat(asMultiValueMap.isEmpty()).isTrue();
219221
assertThat(asMultiValueMap).isEmpty();
220222
}
@@ -233,7 +235,6 @@ void changesValueByReference() {
233235
MultiValueMap<String, String> asMultiValueMap = CollectionUtils.toMultiValueMap(wrapped);
234236
assertThat(asMultiValueMap).doesNotContainKeys("key");
235237
wrapped.put("key", new ArrayList<>());
236-
237238
assertThat(asMultiValueMap).containsKey("key");
238239
}
239240

spring-core/src/test/java/org/springframework/util/MultiValueMapRelatedTests.java

-214
This file was deleted.

0 commit comments

Comments
 (0)