Home / Function/ bindToClassWhenPropertyCannotBeConvertedAndIgnoreErrorsShouldNotSetValue() — spring-boot Function Reference

bindToClassWhenPropertyCannotBeConvertedAndIgnoreErrorsShouldNotSetValue() — spring-boot Function Reference

Architecture documentation for the bindToClassWhenPropertyCannotBeConvertedAndIgnoreErrorsShouldNotSetValue() function in JavaBeanBinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8["bindToClassWhenPropertyCannotBeConvertedAndIgnoreErrorsShouldNotSetValue()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  725e97d2_341b_6665_84bc_9206c7185c54["put()"]
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  57fdc1cb_6747_fe0a_0be1_3727b8692757["IgnoreErrorsBindHandler()"]
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 -->|calls| 57fdc1cb_6747_fe0a_0be1_3727b8692757
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  241955c1_e7fb_47f5_5e8e_e359b477a0ed["get()"]
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 -->|calls| 241955c1_e7fb_47f5_5e8e_e359b477a0ed
  8d9774ec_a690_948a_2152_e2f6fa8dac82["getStringValue()"]
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 -->|calls| 8d9774ec_a690_948a_2152_e2f6fa8dac82
  bac02bab_1710_3bc3_d7aa_a5b605a5361a["getEnumValue()"]
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 -->|calls| bac02bab_1710_3bc3_d7aa_a5b605a5361a
  9a88f17f_9a4e_a23e_eed4_095ba44cf45a["getIntValue()"]
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 -->|calls| 9a88f17f_9a4e_a23e_eed4_095ba44cf45a
  61531d5a_a212_0947_2175_4e40684d01a2["getLongValue()"]
  c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 -->|calls| 61531d5a_a212_0947_2175_4e40684d01a2
  style c876b4d6_ae7a_a389_4b29_ea3cebad2cf8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/JavaBeanBinderTests.java lines 407–421

	@Test
	void bindToClassWhenPropertyCannotBeConvertedAndIgnoreErrorsShouldNotSetValue() {
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("foo.int-value", "12");
		source.put("foo.long-value", "bang");
		source.put("foo.string-value", "foo");
		source.put("foo.enum-value", "foo-bar");
		this.sources.add(source);
		IgnoreErrorsBindHandler handler = new IgnoreErrorsBindHandler();
		ExampleValueBean bean = this.binder.bind("foo", Bindable.of(ExampleValueBean.class), handler).get();
		assertThat(bean.getIntValue()).isEqualTo(12);
		assertThat(bean.getLongValue()).isZero();
		assertThat(bean.getStringValue()).isEqualTo("foo");
		assertThat(bean.getEnumValue()).isEqualTo(ExampleEnum.FOO_BAR);
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToClassWhenPropertyCannotBeConvertedAndIgnoreErrorsShouldNotSetValue() do?
bindToClassWhenPropertyCannotBeConvertedAndIgnoreErrorsShouldNotSetValue() is a function in the spring-boot codebase.
What does bindToClassWhenPropertyCannotBeConvertedAndIgnoreErrorsShouldNotSetValue() call?
bindToClassWhenPropertyCannotBeConvertedAndIgnoreErrorsShouldNotSetValue() calls 10 function(s): IgnoreErrorsBindHandler, MockConfigurationPropertySource, add, get, getEnumValue, getIntValue, getLongValue, getStringValue, and 2 more.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free