Skip to content

Commit

Permalink
forgot the file
Browse files Browse the repository at this point in the history
  • Loading branch information
pegahtah committed Aug 4, 2023
1 parent a342e59 commit d6326f2
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package org.broadinstitute.dsm.model.dashboard;

import org.elasticsearch.action.search.MultiSearchResponse;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.SearchHits;

class MockMultiSearchResponse extends MultiSearchResponse {

public MockMultiSearchResponse() {
super(null);
}

@Override
public Item[] getResponses() {
SearchResponse searchResponse = new SearchResponse() {
@Override
public SearchHits getHits() {
return new SearchHits(null, VerticalHighlightedBarChartStrategyTest.TOTAL_HITS, 0L);
}
};
SearchResponse searchResponse2 = new SearchResponse() {
@Override
public SearchHits getHits() {
return new SearchHits(null, VerticalHighlightedBarChartStrategyTest.TOTAL_HITS2, 0L);
}
};
return new Item[] {new Item(searchResponse, null), new Item(searchResponse2, null)};
}
}

0 comments on commit d6326f2

Please sign in to comment.