@Test void testMapMatchesAllAttributes() { String value = "value"; Query query = Query.builder().setOperator(Operator.MATCHES).setValue(value).build(); @SuppressWarnings("unchecked") Repository<Entity> repository = mock(Repository.class); assertEquals(new QueryImpl<>(repository).search(value), queryMapper.map(query, repository)); }
public <E extends Entity> org.molgenis.data.Query<E> map(Query query, Repository<E> repository) { QueryImpl<E> entityQuery = new QueryImpl<>(repository); map(query, entityQuery, repository.getEntityType()); return entityQuery; }
QueryMapper { public <E extends Entity> org.molgenis.data.Query<E> map(Query query, Repository<E> repository) { QueryImpl<E> entityQuery = new QueryImpl<>(repository); map(query, entityQuery, repository.getEntityType()); return entityQuery; } }
QueryMapper { public <E extends Entity> org.molgenis.data.Query<E> map(Query query, Repository<E> repository) { QueryImpl<E> entityQuery = new QueryImpl<>(repository); map(query, entityQuery, repository.getEntityType()); return entityQuery; } QueryMapper(RSQLValueParser rsqlValueParser); }
QueryMapper { public <E extends Entity> org.molgenis.data.Query<E> map(Query query, Repository<E> repository) { QueryImpl<E> entityQuery = new QueryImpl<>(repository); map(query, entityQuery, repository.getEntityType()); return entityQuery; } QueryMapper(RSQLValueParser rsqlValueParser); org.molgenis.data.Query<E> map(Query query, Repository<E> repository); }
QueryMapper { public <E extends Entity> org.molgenis.data.Query<E> map(Query query, Repository<E> repository) { QueryImpl<E> entityQuery = new QueryImpl<>(repository); map(query, entityQuery, repository.getEntityType()); return entityQuery; } QueryMapper(RSQLValueParser rsqlValueParser); org.molgenis.data.Query<E> map(Query query, Repository<E> repository);  }