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

whenHasPathWithPredicateWhenPathMatches() — spring-boot Function Reference

Architecture documentation for the whenHasPathWithPredicateWhenPathMatches() function in JsonWriterTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  5e069e68_76c9_4ccd_8593_dea36efb0e25["whenHasPathWithPredicateWhenPathMatches()"]
  0d94726e_741b_9208_9d8c_ca4cd0f4cf12["of()"]
  5e069e68_76c9_4ccd_8593_dea36efb0e25 -->|calls| 0d94726e_741b_9208_9d8c_ca4cd0f4cf12
  ba4a56ce_ecdd_4428_4341_85898cb4e693["stringToUppercase()"]
  5e069e68_76c9_4ccd_8593_dea36efb0e25 -->|calls| ba4a56ce_ecdd_4428_4341_85898cb4e693
  e537a626_eefe_4fa4_6b81_c90a061a4f87["toString()"]
  5e069e68_76c9_4ccd_8593_dea36efb0e25 -->|calls| e537a626_eefe_4fa4_6b81_c90a061a4f87
  style 5e069e68_76c9_4ccd_8593_dea36efb0e25 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java lines 752–757

		@Test
		void whenHasPathWithPredicateWhenPathMatches() {
			ValueProcessor<String> processor = ValueProcessor.<String>of(stringToUppercase())
				.whenHasPath((path) -> path.toString().startsWith("f"));
			assertThat(processor.processValue(MemberPath.ROOT.child("foo"), "test")).isEqualTo("TEST");
		}

Domain

Subdomains

Frequently Asked Questions

What does whenHasPathWithPredicateWhenPathMatches() do?
whenHasPathWithPredicateWhenPathMatches() is a function in the spring-boot codebase.
What does whenHasPathWithPredicateWhenPathMatches() call?
whenHasPathWithPredicateWhenPathMatches() calls 3 function(s): of, stringToUppercase, toString.

Analyze Your Own Codebase

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

Try Supermodel Free