|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2012-2014 the original author or authors.
|
|
|
|
|
* Copyright 2012-2015 the original author or authors.
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
@ -252,7 +252,7 @@ public class JacksonAutoConfigurationTests {
|
|
|
|
|
public void disableDeserializationFeature() throws Exception {
|
|
|
|
|
this.context.register(JacksonAutoConfiguration.class);
|
|
|
|
|
EnvironmentTestUtils.addEnvironment(this.context,
|
|
|
|
|
"spring.jackson.deserialization.fail_on_unknown_properties:false");
|
|
|
|
|
"spring.jackson.deserialization.fail-on-unknown-properties:false");
|
|
|
|
|
this.context.refresh();
|
|
|
|
|
ObjectMapper mapper = this.context.getBean(ObjectMapper.class);
|
|
|
|
|
assertTrue(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES.enabledByDefault());
|
|
|
|
|