Skip to content

Commit

Permalink
Polish "Add additional tests for MultiValueMap"
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Aug 25, 2023
1 parent 325edbe commit 352c7cd
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 216 deletions.
Expand Up @@ -35,6 +35,8 @@
import static org.assertj.core.api.Assertions.assertThat;

/**
* Tests for {@link CollectionUtils}.
*
* @author Rob Harrop
* @author Juergen Hoeller
* @author Rick Evans
Expand Down Expand Up @@ -214,7 +216,7 @@ void hasUniqueObject() {

@Test
void conversionOfEmptyMap() {
MultiValueMap<String, List<String>> asMultiValueMap = CollectionUtils.toMultiValueMap(new HashMap<>());
MultiValueMap<String, String> asMultiValueMap = CollectionUtils.toMultiValueMap(new HashMap<>());
assertThat(asMultiValueMap.isEmpty()).isTrue();
assertThat(asMultiValueMap).isEmpty();
}
Expand All @@ -233,7 +235,6 @@ void changesValueByReference() {
MultiValueMap<String, String> asMultiValueMap = CollectionUtils.toMultiValueMap(wrapped);
assertThat(asMultiValueMap).doesNotContainKeys("key");
wrapped.put("key", new ArrayList<>());

assertThat(asMultiValueMap).containsKey("key");
}

Expand Down

This file was deleted.

0 comments on commit 352c7cd

Please sign in to comment.