long taxonLabelId = jdbcTemplate.queryForLong(labelStr);
logger.info("taxonLabel id: " + taxonLabelId);
assertTrue(taxonLabelId > 0);
// 2. query
TaxonLabel label = (TaxonLabel) loadObject(TaxonLabel.class, taxonLabelId);
assertTrue(label != null);
List<TaxonLabel> labelList = new ArrayList<TaxonLabel>();
labelList.add(label);
Collection<PhyloTree> trees = getFixture().findByAnyTaxonLabel(labelList);
assertTrue(trees != null && !trees.isEmpty());
// 3. verify
for (PhyloTree phyloTree : trees) {
long treeId = phyloTree.getId();
String treeCountStr = "select count(tree.phylotree_id) from phylotree tree, phylotreenode node "
+ " where tree.PHYLOTREE_ID = node.PHYLOTREE_ID and node.TAXONLABEL_ID = "
+ label.getId() + " and tree.PHYLOTREE_ID = " + treeId;
int count = jdbcTemplate.queryForInt(treeCountStr);
assertTrue(count > 0);
}
if (logger.isInfoEnabled()) {