Browse Source

Merge branch '2.2.x'

pull/21605/head
Phillip Webb 6 years ago
parent
commit
a84b7bccf1
  1. 4
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/json/YamlJsonParserTests.java

4
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/json/YamlJsonParserTests.java

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
package org.springframework.boot.json;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.yaml.snakeyaml.constructor.ConstructorException;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
@ -34,7 +34,7 @@ public class YamlJsonParserTests extends AbstractJsonParserTests { @@ -34,7 +34,7 @@ public class YamlJsonParserTests extends AbstractJsonParserTests {
}
@Test
public void customTypesAreNotLoaded() throws Exception {
void customTypesAreNotLoaded() throws Exception {
assertThatExceptionOfType(ConstructorException.class)
.isThrownBy(() -> getParser().parseMap("{value: !!java.net.URL [\"http://localhost:9000/\"]}"));
}

Loading…
Cancel
Save