Home / Class/ Assert Class — spring-boot Architecture

Assert Class — spring-boot Architecture

Architecture documentation for the Assert class in SpringApplicationShutdownHookInstance.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationShutdownHookInstance.java lines 61–83

	public static class Assert extends ObjectAssert<SpringApplicationShutdownHook> {

		Assert(SpringApplicationShutdownHook actual) {
			super(actual);
		}

		public Assert registeredApplicationContext(ConfigurableApplicationContext context) {
			assertThatIsApplicationContextRegistered(context).isTrue();
			return this;
		}

		public Assert didNotRegisterApplicationContext(ConfigurableApplicationContext context) {
			assertThatIsApplicationContextRegistered(context).isFalse();
			return this;
		}

		private AbstractBooleanAssert<?> assertThatIsApplicationContextRegistered(
				ConfigurableApplicationContext context) {
			return Assertions.assertThat(this.actual.isApplicationContextRegistered(context))
				.as("ApplicationContext registered with shutdown hook");
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free