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

shouldWatchPemBundles() — spring-boot Function Reference

Architecture documentation for the shouldWatchPemBundles() function in SslPropertiesBundleRegistrarTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  8d99bf84_3fa4_5628_f2fd_75983da797ee["shouldWatchPemBundles()"]
  57be9bb5_de42_ee29_843b_d909abc58185["registerBundle()"]
  8d99bf84_3fa4_5628_f2fd_75983da797ee -->|calls| 57be9bb5_de42_ee29_843b_d909abc58185
  b2d44c2a_d059_d3cf_743c_e19e1850fca7["pathEndingWith()"]
  8d99bf84_3fa4_5628_f2fd_75983da797ee -->|calls| b2d44c2a_d059_d3cf_743c_e19e1850fca7
  9daf3889_6b23_6f27_599f_1d3617c46c31["getBundle()"]
  8d99bf84_3fa4_5628_f2fd_75983da797ee -->|calls| 9daf3889_6b23_6f27_599f_1d3617c46c31
  style 8d99bf84_3fa4_5628_f2fd_75983da797ee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ssl/SslPropertiesBundleRegistrarTests.java lines 80–93

	@Test
	void shouldWatchPemBundles() {
		PemSslBundleProperties pem = new PemSslBundleProperties();
		pem.setReloadOnUpdate(true);
		pem.getKeystore().setCertificate("classpath:org/springframework/boot/autoconfigure/ssl/rsa-cert.pem");
		pem.getKeystore().setPrivateKey("classpath:org/springframework/boot/autoconfigure/ssl/rsa-key.pem");
		pem.getTruststore().setCertificate("classpath:org/springframework/boot/autoconfigure/ssl/ed25519-cert.pem");
		pem.getTruststore().setPrivateKey("classpath:org/springframework/boot/autoconfigure/ssl/ed25519-key.pem");
		this.properties.getBundle().getPem().put("bundle1", pem);
		this.registrar.registerBundles(this.registry);
		then(this.registry).should(times(1)).registerBundle(eq("bundle1"), any());
		then(this.fileWatcher).should()
			.watch(assertArg((set) -> pathEndingWith(set, "rsa-cert.pem", "rsa-key.pem")), any());
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does shouldWatchPemBundles() do?
shouldWatchPemBundles() is a function in the spring-boot codebase.
What does shouldWatchPemBundles() call?
shouldWatchPemBundles() calls 3 function(s): getBundle, pathEndingWith, registerBundle.

Analyze Your Own Codebase

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

Try Supermodel Free