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

bindWhenHasAnnotationsShouldChangeConvertedValue() — spring-boot Function Reference

Architecture documentation for the bindWhenHasAnnotationsShouldChangeConvertedValue() function in BinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  95ee120e_7dcf_449b_3bf2_c72356e8dc33["bindWhenHasAnnotationsShouldChangeConvertedValue()"]
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  95ee120e_7dcf_449b_3bf2_c72356e8dc33 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  95ee120e_7dcf_449b_3bf2_c72356e8dc33 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  76576a77_87f7_3680_8561_2923813db3c1["of()"]
  95ee120e_7dcf_449b_3bf2_c72356e8dc33 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1
  d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"]
  95ee120e_7dcf_449b_3bf2_c72356e8dc33 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a
  style 95ee120e_7dcf_449b_3bf2_c72356e8dc33 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java lines 262–269

	@Test
	void bindWhenHasAnnotationsShouldChangeConvertedValue() {
		this.sources.add(new MockConfigurationPropertySource("foo", "2014-04-01T01:30:00.000-05:00"));
		DateTimeFormat annotation = AnnotationUtils.synthesizeAnnotation(
				Collections.singletonMap("iso", DateTimeFormat.ISO.DATE_TIME), DateTimeFormat.class, null);
		LocalDate result = this.binder.bind("foo", Bindable.of(LocalDate.class).withAnnotations(annotation)).get();
		assertThat(result).hasToString("2014-04-01");
	}

Domain

Subdomains

Frequently Asked Questions

What does bindWhenHasAnnotationsShouldChangeConvertedValue() do?
bindWhenHasAnnotationsShouldChangeConvertedValue() is a function in the spring-boot codebase.
What does bindWhenHasAnnotationsShouldChangeConvertedValue() call?
bindWhenHasAnnotationsShouldChangeConvertedValue() calls 4 function(s): MockConfigurationPropertySource, add, get, of.

Analyze Your Own Codebase

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

Try Supermodel Free