@SuppressWarnings("deprecation") @Test void mapQueryRuleAllAttributeSearchNullValue() { assertThrows( MolgenisQueryException.class, () -> searchQueryGenerator.mapQueryRule(queryRule, entityType)); }
QueryBuilder mapQueryRule(QueryRule queryRule, EntityType entityType) { if (queryRule.getValue() == null) { throw new MolgenisQueryException(QUERY_VALUE_CANNOT_BE_NULL_MSG); } if (queryRule.getField() == null) { return createQueryClauseSearchAll(queryRule); } else { return createQueryClauseSearchAttribute(queryRule, entityType); } }
QueryClauseSearchQueryGenerator extends BaseQueryClauseGenerator { QueryBuilder mapQueryRule(QueryRule queryRule, EntityType entityType) { if (queryRule.getValue() == null) { throw new MolgenisQueryException(QUERY_VALUE_CANNOT_BE_NULL_MSG); } if (queryRule.getField() == null) { return createQueryClauseSearchAll(queryRule); } else { return createQueryClauseSearchAttribute(queryRule, entityType); } } }
QueryClauseSearchQueryGenerator extends BaseQueryClauseGenerator { QueryBuilder mapQueryRule(QueryRule queryRule, EntityType entityType) { if (queryRule.getValue() == null) { throw new MolgenisQueryException(QUERY_VALUE_CANNOT_BE_NULL_MSG); } if (queryRule.getField() == null) { return createQueryClauseSearchAll(queryRule); } else { return createQueryClauseSearchAttribute(queryRule, entityType); } } QueryClauseSearchQueryGenerator(DocumentIdGenerator documentIdGenerator); }
QueryClauseSearchQueryGenerator extends BaseQueryClauseGenerator { QueryBuilder mapQueryRule(QueryRule queryRule, EntityType entityType) { if (queryRule.getValue() == null) { throw new MolgenisQueryException(QUERY_VALUE_CANNOT_BE_NULL_MSG); } if (queryRule.getField() == null) { return createQueryClauseSearchAll(queryRule); } else { return createQueryClauseSearchAttribute(queryRule, entityType); } } QueryClauseSearchQueryGenerator(DocumentIdGenerator documentIdGenerator);  }
QueryClauseSearchQueryGenerator extends BaseQueryClauseGenerator { QueryBuilder mapQueryRule(QueryRule queryRule, EntityType entityType) { if (queryRule.getValue() == null) { throw new MolgenisQueryException(QUERY_VALUE_CANNOT_BE_NULL_MSG); } if (queryRule.getField() == null) { return createQueryClauseSearchAll(queryRule); } else { return createQueryClauseSearchAttribute(queryRule, entityType); } } QueryClauseSearchQueryGenerator(DocumentIdGenerator documentIdGenerator);   }