Polish "Fix JsonContentAssert type safety warnings"

- Format code
- Update an existing test to use the contains method that would
  previously have triggered a type safety warning

Closes gh-9675
This commit is contained in:
Andy Wilkinson
2017-07-21 15:10:23 +01:00
parent ae91c8460f
commit f6727e786a
2 changed files with 8 additions and 7 deletions

View File

@@ -37,6 +37,7 @@ import org.springframework.test.util.JsonPathExpectationsHelper;
import org.springframework.util.FileCopyUtils;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.entry;
/**
* Tests for {@link JsonContentAssert}. Some tests here are based on Spring Framework
@@ -1252,7 +1253,7 @@ public class JsonContentAssertTests {
@Test
public void extractingJsonPathMapValue() throws Exception {
assertThat(forJson(TYPES)).extractingJsonPathMapValue("@.colorMap")
.containsEntry("red", "rojo");
.contains(entry("red", "rojo"));
}
@Test