@Test public void detectNullShouldReturnEmptyDependencies() { Set<Relationship> actual = new LdapRelationshipDetector(null).detect(); Assertions.assertThat(actual).isEmpty(); }
@Override public Set<Relationship> detect() { if (contextSources.isEmpty()) { return Collections.emptySet(); } return Dependency.on(Component.of(defaultName, ComponentType.LDAP)).asRelationshipSet(); }
LdapRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { if (contextSources.isEmpty()) { return Collections.emptySet(); } return Dependency.on(Component.of(defaultName, ComponentType.LDAP)).asRelationshipSet(); } }
LdapRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { if (contextSources.isEmpty()) { return Collections.emptySet(); } return Dependency.on(Component.of(defaultName, ComponentType.LDAP)).asRelationshipSet(); } LdapRelationshipDetector(List<ContextSource> sources); }
LdapRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { if (contextSources.isEmpty()) { return Collections.emptySet(); } return Dependency.on(Component.of(defaultName, ComponentType.LDAP)).asRelationshipSet(); } LdapRelationshipDetector(List<ContextSource> sources); @Override Set<Relationship> detect(); }
LdapRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { if (contextSources.isEmpty()) { return Collections.emptySet(); } return Dependency.on(Component.of(defaultName, ComponentType.LDAP)).asRelationshipSet(); } LdapRelationshipDetector(List<ContextSource> sources); @Override Set<Relationship> detect();  }