Commit a84b7bcc authored by Phillip Webb's avatar Phillip Webb

Merge branch '2.2.x'

parents 1c3f147c 14c9804c
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
package org.springframework.boot.json; package org.springframework.boot.json;
import org.junit.Test; import org.junit.jupiter.api.Test;
import org.yaml.snakeyaml.constructor.ConstructorException; import org.yaml.snakeyaml.constructor.ConstructorException;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType; 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 @Test
public void customTypesAreNotLoaded() throws Exception { void customTypesAreNotLoaded() throws Exception {
assertThatExceptionOfType(ConstructorException.class) assertThatExceptionOfType(ConstructorException.class)
.isThrownBy(() -> getParser().parseMap("{value: !!java.net.URL [\"http://localhost:9000/\"]}")); .isThrownBy(() -> getParser().parseMap("{value: !!java.net.URL [\"http://localhost:9000/\"]}"));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment