@Test void containsNestedQueryRuleFieldFalse() { @SuppressWarnings("unchecked") Query<Entity> q = mock(Query.class); QueryRule nestedQueryRule0 = mock(QueryRule.class); when(nestedQueryRule0.getField()).thenReturn("refAttr"); QueryRule queryRule0 = mock(QueryRule.class); when(queryRule0.getField()).thenReturn("attr"); QueryRule queryRule1 = mock(QueryRule.class); when(queryRule1.getNestedRules()).thenReturn(singletonList(nestedQueryRule0)); when(q.getRules()).thenReturn(asList(queryRule0, queryRule1)); assertFalse(QueryUtils.containsNestedQueryRuleField(q)); }
public static boolean containsNestedQueryRuleField(Query<Entity> q) { return containsNestedQueryRuleFieldRec(q.getRules()); }
QueryUtils { public static boolean containsNestedQueryRuleField(Query<Entity> q) { return containsNestedQueryRuleFieldRec(q.getRules()); } }
QueryUtils { public static boolean containsNestedQueryRuleField(Query<Entity> q) { return containsNestedQueryRuleFieldRec(q.getRules()); } private  QueryUtils(); }
QueryUtils { public static boolean containsNestedQueryRuleField(Query<Entity> q) { return containsNestedQueryRuleFieldRec(q.getRules()); } private  QueryUtils(); static boolean containsOperator(Query<Entity> q, Operator operator); static boolean containsAnyOperator(Query<Entity> q, Set<Operator> operators); static boolean containsAnyOperator(List<QueryRule> rules, Set<Operator> operators); static boolean containsComputedAttribute(Query<Entity> query, EntityType entityType); static boolean containsComputedAttribute(Sort sort, EntityType entityType); static boolean containsComputedAttribute(
      Iterable<QueryRule> rules, EntityType entityType); static boolean containsNestedQueryRuleField(Query<Entity> q); static Attribute getQueryRuleAttribute(QueryRule queryRule, EntityType entityType); static List<Attribute> getAttributePath(String queryRuleField, EntityType entityType); static List<Attribute> getAttributePathExpanded(
      String queryRuleField, EntityType entityType); static List<Attribute> getAttributePathExpanded(
      String queryRuleField, EntityType entityType, boolean expandLabelInsteadOfId); static boolean isTaggedType(Attribute attribute, IRI typeIRI); }
QueryUtils { public static boolean containsNestedQueryRuleField(Query<Entity> q) { return containsNestedQueryRuleFieldRec(q.getRules()); } private  QueryUtils(); static boolean containsOperator(Query<Entity> q, Operator operator); static boolean containsAnyOperator(Query<Entity> q, Set<Operator> operators); static boolean containsAnyOperator(List<QueryRule> rules, Set<Operator> operators); static boolean containsComputedAttribute(Query<Entity> query, EntityType entityType); static boolean containsComputedAttribute(Sort sort, EntityType entityType); static boolean containsComputedAttribute(
      Iterable<QueryRule> rules, EntityType entityType); static boolean containsNestedQueryRuleField(Query<Entity> q); static Attribute getQueryRuleAttribute(QueryRule queryRule, EntityType entityType); static List<Attribute> getAttributePath(String queryRuleField, EntityType entityType); static List<Attribute> getAttributePathExpanded(
      String queryRuleField, EntityType entityType); static List<Attribute> getAttributePathExpanded(
      String queryRuleField, EntityType entityType, boolean expandLabelInsteadOfId); static boolean isTaggedType(Attribute attribute, IRI typeIRI);  }