Skip to content

Commit

Permalink
Fix CellTypeSearchDaoIT to filter for CTW_CELL_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
ke4 committed Nov 25, 2024
1 parent a533373 commit d3237ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public ImmutableSet<String> fetchedRandomOrganismPartsByCellIDs(ImmutableSet<Str
SolrQueryBuilder<SingleCellAnalyticsCollectionProxy> queryBuilder = new SolrQueryBuilder<>();
queryBuilder
.addQueryFieldByTerm(CELL_ID, cellIDs)
.exists(CTW_CELL_TYPE)
.setFieldList(CTW_ORGANISM_PART)
.setRows(MAX_ROWS);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import javax.inject.Inject;
import javax.sql.DataSource;

import java.util.HashSet;

import static org.assertj.core.api.Assertions.assertThat;
Expand Down Expand Up @@ -183,8 +182,8 @@ void whenValidCellIdsAndValidProvidedReturnSetOfCellTypes() {
var randomListOfCellIDs =
ImmutableSet.copyOf(
new HashSet<>(jdbcUtils.fetchRandomListOfCells(3)));
ImmutableSet<String> organismParts = solrUtils.fetchedRandomOrganismPartsByCellIDs(
randomListOfCellIDs, 1);
var organismParts = solrUtils.fetchedRandomOrganismPartsByCellIDs(
randomListOfCellIDs, 1);

var cellTypes = subject.searchCellTypes(randomListOfCellIDs, organismParts);

Expand Down

0 comments on commit d3237ae

Please sign in to comment.