@Test void testMapIn() { String value0 = "value0"; String value1 = "value1"; Query query = Query.builder() .setItem("test") .setOperator(Operator.IN) .setValue(asList(value0, value1)) .build(); Attribute attribute = mock(Attribute.class); Repository<Entity> repository = createMockRepository(attribute); Object parsedValue0 = mock(Object.class); doReturn(parsedValue0).when(rsqlValueParser).parse(value0, attribute); Object parsedValue1 = mock(Object.class); doReturn(parsedValue1).when(rsqlValueParser).parse(value1, attribute); assertEquals( new QueryImpl<>(repository).in("test", asList(parsedValue0, parsedValue1)), 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);  }