Home / Class/ TestOrigin Class — spring-boot Architecture

TestOrigin Class — spring-boot Architecture

Architecture documentation for the TestOrigin class in InvalidConfigurationPropertyValueFailureAnalyzerTests.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/InvalidConfigurationPropertyValueFailureAnalyzerTests.java lines 189–223

		static final class TestOrigin implements Origin {

			private final String name;

			private final String sourceName;

			private TestOrigin(String name, String sourceName) {
				this.name = name;
				this.sourceName = sourceName;
			}

			@Override
			public boolean equals(Object obj) {
				if (this == obj) {
					return true;
				}
				if (obj == null || getClass() != obj.getClass()) {
					return false;
				}
				TestOrigin other = (TestOrigin) obj;
				return ObjectUtils.nullSafeEquals(this.name, other.name)
						&& ObjectUtils.nullSafeEquals(this.sourceName, other.sourceName);
			}

			@Override
			public int hashCode() {
				return ObjectUtils.nullSafeHashCode(this.name);
			}

			@Override
			public String toString() {
				return "TestOrigin " + this.name;
			}

		}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free