MockableOnJndi Class — spring-boot Architecture
Architecture documentation for the MockableOnJndi class in ConditionalOnJndiTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/condition/ConditionalOnJndiTests.java lines 154–179
static class MockableOnJndi extends OnJndiCondition {
private final boolean jndiAvailable = true;
private @Nullable String foundLocation;
@Override
protected boolean isJndiAvailable() {
return this.jndiAvailable;
}
@Override
protected JndiLocator getJndiLocator(String[] locations) {
return new JndiLocator(locations) {
@Override
public @Nullable String lookupFirstLocation() {
return MockableOnJndi.this.foundLocation;
}
};
}
void setFoundLocation(String foundLocation) {
this.foundLocation = foundLocation;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free