@Test public void searchBioentityIdentifiers() { ImmutableSet<String> result = subject.searchBioentityIdentifiers(query, condition, species.getReferenceName()); assertThat(result.size(), greaterThan(0)); }
@Test public void getBioentityIdentifiersForSpecies() { Collection<String> result = subject.getBioentityIdentifiersForSpecies(species.getReferenceName()); assertThat(result.size(), greaterThan(100)); }
@Test public void fetchExperimentTypes3() { ImmutableSet<String> result = subject.fetchExperimentTypes(query, condition, species.getReferenceName()); assertThat(result.size(), greaterThan(0)); }
private Set<String> getGuysIdentifiers(SemanticQuery query) { ImmutableSet.Builder<String> b = ImmutableSet.builder(); for (String bioentityIdentifier : analyticsSearchService.searchBioentityIdentifiers( query, SemanticQuery.create(), SPECIES_IN_GUYS_EXPERIMENT.getReferenceName())) { if (guysIdentifiersPerEnsemblId.containsKey(bioentityIdentifier)) { b.add(guysIdentifiersPerEnsemblId.get(bioentityIdentifier)); } } return b.build(); }