SearchRequestMapper { @Inject public SearchRequestMapper(final VisualisationStore visualisationStore) { this.visualisationStore = visualisationStore; } @Inject  SearchRequestMapper(final VisualisationStore visualisationStore); stroom.query.api.v2.SearchRequest mapRequest(final DashboardQueryKey queryKey,
                                                        final stroom.dashboard.shared.SearchRequest searchRequest); final static String EXPRESSION_JSON_PARAM_KEY; }
@Test void testSearchRequestMapper() { stroom.dashboard.shared.SearchRequest dashboardSearchRequest = SearchRequestTestData.dashboardSearchRequest(); stroom.query.api.v2.SearchRequest mappedApiSearchRequest = searchRequestMapper.mapRequest(new DashboardQueryKey("test", "ttest", "test"), dashboardSearchRequest); verify_Search_to_Query_mapping( dashboardSearchRequest.getSearch(), mappedApiSearchRequest.getQuery()); verify_ComponentResultRequest_to_ResultRequest_mappings( dashboardSearchRequest.getComponentResultRequests(), mappedApiSearchRequest.getResultRequests()); }