@Test public void whereWithFilter() throws Exception { when(queryOptions.getFilter()).thenReturn("filter"); String whereClause = underTest.buildWhereClause(); assertThat(whereClause, is(equalTo(CONTENT_EXPRESSION + " AND " + FILTER_EXPRESSION))); }
public String buildWhereClause() { return whereClause("contentExpression(@this, :jexlExpression, :repositorySelector, " + ":repoToContainedGroupMap) == true", queryOptions.getFilter() != null); }
PreviewAssetsSqlBuilder { public String buildWhereClause() { return whereClause("contentExpression(@this, :jexlExpression, :repositorySelector, " + ":repoToContainedGroupMap) == true", queryOptions.getFilter() != null); } }
PreviewAssetsSqlBuilder { public String buildWhereClause() { return whereClause("contentExpression(@this, :jexlExpression, :repositorySelector, " + ":repoToContainedGroupMap) == true", queryOptions.getFilter() != null); } PreviewAssetsSqlBuilder(final RepositorySelector repositorySelector,
                                 final String jexlExpression,
                                 final QueryOptions queryOptions,
                                 final Map<String, List<String>> repoToContainedGroupMap); }
PreviewAssetsSqlBuilder { public String buildWhereClause() { return whereClause("contentExpression(@this, :jexlExpression, :repositorySelector, " + ":repoToContainedGroupMap) == true", queryOptions.getFilter() != null); } PreviewAssetsSqlBuilder(final RepositorySelector repositorySelector,
                                 final String jexlExpression,
                                 final QueryOptions queryOptions,
                                 final Map<String, List<String>> repoToContainedGroupMap); String buildWhereClause(); String buildQuerySuffix(); Map<String, Object> buildSqlParams(); }
PreviewAssetsSqlBuilder { public String buildWhereClause() { return whereClause("contentExpression(@this, :jexlExpression, :repositorySelector, " + ":repoToContainedGroupMap) == true", queryOptions.getFilter() != null); } PreviewAssetsSqlBuilder(final RepositorySelector repositorySelector,
                                 final String jexlExpression,
                                 final QueryOptions queryOptions,
                                 final Map<String, List<String>> repoToContainedGroupMap); String buildWhereClause(); String buildQuerySuffix(); Map<String, Object> buildSqlParams();  }