@Test public void cassandraRelationshipWithSessionAvailable() { Assertions.assertThat(detector.detect()) .contains(Dependency.on(Component.of("keyspace", ComponentType.CASSANDRA))); }
@Override public Set<Relationship> detect() { final Set<Relationship> result = new HashSet<>(); for (Session s : sessions) { result.add(Dependency.on(Component.of(extractName(s), ComponentType.CASSANDRA))); } return result; }
CassandraRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { final Set<Relationship> result = new HashSet<>(); for (Session s : sessions) { result.add(Dependency.on(Component.of(extractName(s), ComponentType.CASSANDRA))); } return result; } }
CassandraRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { final Set<Relationship> result = new HashSet<>(); for (Session s : sessions) { result.add(Dependency.on(Component.of(extractName(s), ComponentType.CASSANDRA))); } return result; } CassandraRelationshipDetector(Collection<Session> sessions); }
CassandraRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { final Set<Relationship> result = new HashSet<>(); for (Session s : sessions) { result.add(Dependency.on(Component.of(extractName(s), ComponentType.CASSANDRA))); } return result; } CassandraRelationshipDetector(Collection<Session> sessions); @Override Set<Relationship> detect(); }
CassandraRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { final Set<Relationship> result = new HashSet<>(); for (Session s : sessions) { result.add(Dependency.on(Component.of(extractName(s), ComponentType.CASSANDRA))); } return result; } CassandraRelationshipDetector(Collection<Session> sessions); @Override Set<Relationship> detect();  }