@Test public void findAllKafkaClusters() { List<KafkaCluster> kafkaClusters = kafkaDao.findAll(); assertEquals("There should be 3 kafka clusters in the datastore", 3, kafkaClusters.size()); assertEquals("The first item in the cluster list should have and id of \"first\"", "first-cluster", kafkaClusters.get(0).getId()); assertEquals("The second item in the cluster list should have and id of \"second\"", "second-cluster", kafkaClusters.get(1).getId()); assertEquals("The third item in the cluster list should have and id of \"third\"", "third-cluster", kafkaClusters.get(2).getId()); }
@Override public List<KafkaCluster> findAll() { return query().order("name").asList(); }
MongoKafkaDao extends MongoDao<KafkaCluster, String> implements KafkaDao { @Override public List<KafkaCluster> findAll() { return query().order("name").asList(); } }
MongoKafkaDao extends MongoDao<KafkaCluster, String> implements KafkaDao { @Override public List<KafkaCluster> findAll() { return query().order("name").asList(); } @Inject  MongoKafkaDao(Datastore datastore); }
MongoKafkaDao extends MongoDao<KafkaCluster, String> implements KafkaDao { @Override public List<KafkaCluster> findAll() { return query().order("name").asList(); } @Inject  MongoKafkaDao(Datastore datastore); @Override List<KafkaCluster> findAll(); @Override KafkaCluster findByName(String name); }
MongoKafkaDao extends MongoDao<KafkaCluster, String> implements KafkaDao { @Override public List<KafkaCluster> findAll() { return query().order("name").asList(); } @Inject  MongoKafkaDao(Datastore datastore); @Override List<KafkaCluster> findAll(); @Override KafkaCluster findByName(String name);  }